From 7cf4c970ae89f06aa77345900f96a310400c8595 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 25 May 2007 15:02:20 +0000 Subject: debug print in focus.c when focus goes to something that isn't a client (window already unmapped) then set focus_client to NULL so we know nothing has focus right now --- openbox/event.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'openbox/event.c') diff --git a/openbox/event.c b/openbox/event.c index 6e11f82e..868712c1 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -526,7 +526,10 @@ static void event_process(const XEvent *ec, gpointer data) /* If you send focus to a window and then it disappears, you can get the FocusIn for it, after it is unmanaged. - Just wait for the next FocusOut/FocusIn pair. */ + Just wait for the next FocusOut/FocusIn pair, but note that + nothing is focused now. + */ + focus_set_client(NULL); } else if (client != focus_client) { focus_left_screen = FALSE; -- cgit v1.2.3