After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 303041 - Recover from root window focus
Recover from root window focus
Status: RESOLVED NOTABUG
Product: metacity
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2005-05-04 19:56 UTC by Owen Taylor
Modified: 2005-05-04 20:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2005-05-04 19:56:16 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.
Comment 1 Owen Taylor 2005-05-04 20:01:46 UTC
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));
            }