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:
parent
7b8a6cca3f
commit
d6767530e4
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue