/* 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;
case MapRequest:
ob_debug("MapRequest for 0x%lx\n", client->window);
if (!client->iconic) break; /* this normally doesn't happen, but if it
- does, we don't want it! */
+ does, we don't want it!
+ it can happen now when the window is on
+ another desktop, but we still don't
+ want it! */
client_activate(client, FALSE);
break;
case ClientMessage: