X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus.c;h=16ab571e9c1928fbaa48fc3601d3e58ee2e41efc;hb=f81f352f4ea128c2aec195c6414a936bcfac786b;hp=3376d50ac352f6689383feb93794b8b38c2b46d8;hpb=f6ba1f27b9790f56bda1e5831069e2dd7e2c96a2;p=chaz%2Fopenbox diff --git a/openbox/focus.c b/openbox/focus.c index 3376d50a..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); } @@ -183,7 +185,7 @@ void focus_fallback(ObFocusFallbackType type) if (old->transient_for) { gboolean trans = FALSE; - if (config_focus_last || !config_focus_follow) + if (!config_focus_follow) trans = TRUE; else { ObClient *c; @@ -215,7 +217,7 @@ void focus_fallback(ObFocusFallbackType type) } } - if (!config_focus_last && config_focus_follow) + if (config_focus_follow) if (focus_under_pointer()) return;