From 104478000f7611e28716f38ad9e27d119e8fbae9 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 6 Sep 2024 09:49:39 +0200 Subject: [PATCH] 1 --- hw/xnest/Events.c | 7 ++++++- hw/xnest/Window.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/xnest/Events.c b/hw/xnest/Events.c index 024cb6ec9..b22cdf6c0 100644 --- a/hw/xnest/Events.c +++ b/hw/xnest/Events.c @@ -242,8 +242,13 @@ xnest_handle_event(xcb_generic_event_t *event) break; } - case CirculateNotify: case ConfigureNotify: + { + fprintf(stderr, "ConfigureNotify\n"); + break; + } + + case CirculateNotify: case GravityNotify: case MapNotify: case ReparentNotify: diff --git a/hw/xnest/Window.c b/hw/xnest/Window.c index 1897de02b..0e9821154 100644 --- a/hw/xnest/Window.c +++ b/hw/xnest/Window.c @@ -166,7 +166,7 @@ xnestCreateWindow(WindowPtr pWin) /* special handling for toplevel windows in rootless mode */ if (xnestRootless && pWin->parent && !pWin->parent->parent) { fprintf(stderr, "created toplevel window: catching input events\n"); - uint32_t event_mask = XNEST_KEYBOARD_EVENT_MASK | XNEST_POINTER_EVENT_MASK; + uint32_t event_mask = XNEST_KEYBOARD_EVENT_MASK | XNEST_POINTER_EVENT_MASK | XCB_EVENT_MASK_STRUCTURE_NOTIFY; xcb_change_window_attributes(xnestUpstreamInfo.conn, xnestWindow(pWin), XCB_CW_EVENT_MASK,