summaryrefslogtreecommitdiff
path: root/src/x11
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2022-12-21 15:55:38 +0100
committerMarge Bot <marge-bot@gnome.org>2023-01-25 13:31:49 +0000
commit24f796a30c8ecc62ecd38d72b00c2342ee5558a7 (patch)
treee336e09fea49f5085a2a9af50b9997d4ee977b0b /src/x11
parent8f268f2930b15bdf974395e0c27085c69d35b99e (diff)
downloadmutter-24f796a30c8ecc62ecd38d72b00c2342ee5558a7.tar.gz
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>
Diffstat (limited to 'src/x11')
-rw-r--r--src/x11/meta-x11-display.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/x11/meta-x11-display.c b/src/x11/meta-x11-display.c
index 1ad97b2f5..222500c84 100644
--- a/src/x11/meta-x11-display.c
+++ b/src/x11/meta-x11-display.c
@@ -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, &timestamp))
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);