From 24f796a30c8ecc62ecd38d72b00c2342ee5558a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 21 Dec 2022 15:55:38 +0100 Subject: [PATCH] x11/display: Add some logging https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5932 Part-of: --- src/x11/meta-x11-display.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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, ×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);