From 9bac22eb402a477b802416287b9e76bf908408ed Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 29 Sep 2003 10:03:28 +0000 Subject: [PATCH] indenting, focus fallback to None not PointerRoot --- openbox/focus.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/openbox/focus.c b/openbox/focus.c index 873ba035..16ab571e 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -75,8 +75,7 @@ void focus_shutdown(gboolean reconfig) g_free(focus_order); /* reset focus to root */ - XSetInputFocus(ob_display, PointerRoot, RevertToPointerRoot, - event_lasttime); + XSetInputFocus(ob_display, PointerRoot, RevertToNone, event_lasttime); } } @@ -104,8 +103,11 @@ void focus_set_client(ObClient *client) screen_install_colormap(client, TRUE); if (client == NULL) { - /* when nothing will be focused, send focus to the backup target */ - XSetInputFocus(ob_display, screen_support_win, RevertToPointerRoot, +#ifdef DEBUG_FOCUS + ob_debug("actively focusing NONWINDOW\n"); +#endif + /* when nothing will be focused, send focus to the backup target */ + XSetInputFocus(ob_display, screen_support_win, RevertToNone, event_lasttime); XSync(ob_display, FALSE); } -- 2.39.2