GNOME Bugzilla – Bug 303041
Recover from root window focus
Last modified: 2005-05-04 20:01:46 UTC
There is code in metacity to recover if a buggy client leaves the focus at: None PointerRoot But it turns out that there is another case that should be recovered from as well... when a root window is focused. What PointerRoot says is "send events to the window under the pointer, no matter what screen it is on". Having the root window focused means "send events to the window under the pointer, as long as it is on the same screen as the focused root window". See bug 109246 for a test case that leaves the display in such a state.
Errr, forget that. Doesn't happen, the code is already there else if (event->type == FocusIn && event->xfocus.mode == NotifyNormal && event->xfocus.detail == NotifyInferior) { meta_topic (META_DEBUG_FOCUS, "Focus got set to root window, probably due to gnome-session logout dialog usage (see bug 153220). Setting the default focus window.\n"); meta_workspace_focus_default_window (screen->active_workspace, NULL, meta_display_get_current_time_roundtrip (display)); }