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.
This commit is contained in:
Window Maker 2026-05-24 17:28:20 +02:00
parent 7b8a6cca3f
commit d6767530e4
1 changed files with 1 additions and 1 deletions

View File

@ -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;