From d6767530e49ad3ff045041436f83075f83a68a1b Mon Sep 17 00:00:00 2001 From: Window Maker Date: Sun, 24 May 2026 17:28:20 +0200 Subject: [PATCH] WINGs/wview_wl: fix configure event to trigger SubstructureNotify The viewport's event handler is registered for SUBSTRUCTURE_NOTIFY. WMHandleEvent switches from STRUCTURE_NOTIFY to SUBSTRUCTURE_NOTIFY when event.window != configure.event. The event was incorrectly setting both to the parent window. Fix: set event.window to the child (resized view) so the mismatch triggers the SubstructureNotify path. --- WINGs/wview_wl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WINGs/wview_wl.c b/WINGs/wview_wl.c index 40d91c3..c47c0d7 100644 --- a/WINGs/wview_wl.c +++ b/WINGs/wview_wl.c @@ -349,7 +349,7 @@ static void wl_resize(void *vctx, W_View *view, unsigned int w, unsigned int h) WMEvent cev; memset(&cev, 0, sizeof(cev)); cev.type = WME_CONFIGURE; - cev.window = view->parent->window; + cev.window = view->window; cev.u.configure.window = view->window; cev.u.configure.event = view->parent->window; cev.u.configure.width = w;