X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Ffocus.c;h=c95111fbe93a00e471b3265400a0f56f6747d9be;hb=6f5292c87ece138a2b80d102ba0919b105b1839a;hp=873ba0357c75e5115471341bcc718bccebc1d5c4;hpb=fa962c1604bac1b5a6c3656b71c3145436f2392b;p=chaz%2Fopenbox diff --git a/openbox/focus.c b/openbox/focus.c index 873ba035..c95111fb 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); } @@ -194,8 +196,6 @@ void focus_fallback(ObFocusFallbackType type) trans = TRUE; } - g_message("trans %d", trans); - /* try for transient relations */ if (trans) { if (old->transient_for == OB_TRAN_GROUP) {