mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
x11/display: Add some logging
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5932 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2776>
This commit is contained in:
parent
8f268f2930
commit
24f796a30c
@ -1992,6 +1992,9 @@ meta_x11_display_update_focus_window (MetaX11Display *x11_display,
|
||||
if (x11_display->focus_xwindow == xwindow)
|
||||
return;
|
||||
|
||||
meta_topic (META_DEBUG_FOCUS, "Updating X11 focus window from 0x%lx to 0x%lx",
|
||||
x11_display->focus_xwindow, xwindow);
|
||||
|
||||
x11_display->focus_xwindow = xwindow;
|
||||
meta_x11_display_update_active_window_hint (x11_display);
|
||||
}
|
||||
@ -2043,6 +2046,9 @@ meta_x11_display_set_input_focus (MetaX11Display *x11_display,
|
||||
else
|
||||
xwindow = x11_display->no_focus_window;
|
||||
|
||||
meta_topic (META_DEBUG_FOCUS, "Setting X11 input focus for window %s to 0x%lx",
|
||||
window ? window->desc : "none", xwindow);
|
||||
|
||||
meta_x11_error_trap_push (x11_display);
|
||||
meta_x11_display_set_input_focus_internal (x11_display, xwindow, timestamp);
|
||||
serial = XNextRequest (x11_display->xdisplay);
|
||||
@ -2060,6 +2066,8 @@ meta_x11_display_set_input_focus_xwindow (MetaX11Display *x11_display,
|
||||
if (meta_display_timestamp_too_old (x11_display->display, ×tamp))
|
||||
return;
|
||||
|
||||
meta_topic (META_DEBUG_FOCUS, "Setting X11 input focus to 0x%lx", window);
|
||||
|
||||
meta_x11_display_set_input_focus_internal (x11_display, window, timestamp);
|
||||
serial = XNextRequest (x11_display->xdisplay);
|
||||
meta_x11_display_update_focus_window (x11_display, window, serial, TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user