]> Dogcows Code - chaz/openbox/commitdiff
indenting, focus fallback to None not PointerRoot
authorDana Jansens <danakj@orodu.net>
Mon, 29 Sep 2003 10:03:28 +0000 (10:03 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 29 Sep 2003 10:03:28 +0000 (10:03 +0000)
openbox/focus.c

index 873ba0357c75e5115471341bcc718bccebc1d5c4..16ab571e9c1928fbaa48fc3601d3e58ee2e41efc 100644 (file)
@@ -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);
     }
This page took 0.022325 seconds and 4 git commands to generate.