]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
focus fallback when focus is on PointerRoot
[chaz/openbox] / openbox / event.c
index 8554ce93a169a0376033b0fc8f65d146c1227fee..700013b8d793911b619ea408a36dd9c567ef74ee 100644 (file)
@@ -364,7 +364,12 @@ static void event_done(gpointer data)
 
             /* is focus anywhere valid? */
             XGetInputFocus(ob_display, &w, &r);
-            if (!w || w == RootWindow(ob_display, ob_screen))
+
+#ifdef DEBUG_FOCUS
+            ob_debug("Focus was found on 0x%x revert %d\n", w, r);
+#endif
+
+            if (!w || w == PointerRoot)
                 focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS);
         }
         last = focus_client;
This page took 0.02002 seconds and 4 git commands to generate.