+ if (!focus_client) {
+ Window w;
+ gint r;
+
+ /* is focus anywhere valid? */
+ XGetInputFocus(ob_display, &w, &r);
+
+#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);
+ }