wayland: fix weird regression

This commit is contained in:
IoIxD 2026-01-12 18:48:22 -07:00
commit 14e55b7f53

View file

@ -465,9 +465,8 @@ static void pointer_button(void* data, struct wl_pointer* wl_pointer, MwU32 seri
MwLLDispatch(self->wayland.parent->wayland.currentlyHeldWidget, up, &p); MwLLDispatch(self->wayland.parent->wayland.currentlyHeldWidget, up, &p);
self->wayland.parent->wayland.currentlyHeldWidget = NULL; self->wayland.parent->wayland.currentlyHeldWidget = NULL;
} }
} else {
MwLLDispatch(self, up, &p);
} }
MwLLDispatch(self, up, &p);
break; break;
} }
} }
@ -1504,10 +1503,6 @@ static void MwLLSetXYImpl(MwLL handle, int x, int y) {
MwLLDispatch(handle, draw, NULL); MwLLDispatch(handle, draw, NULL);
handle->wayland.events_pending += 1; handle->wayland.events_pending += 1;
if(handle->wayland.parent != NULL) {
MwLLDispatch(handle->wayland.parent, draw, NULL);
handle->wayland.parent->wayland.events_pending += 1;
}
} }
static void MwLLSetWHImpl(MwLL handle, int w, int h) { static void MwLLSetWHImpl(MwLL handle, int w, int h) {
@ -1531,6 +1526,7 @@ refresh:
framebuffer_destroy(&handle->wayland); framebuffer_destroy(&handle->wayland);
framebuffer_setup(&handle->wayland); framebuffer_setup(&handle->wayland);
MwLLDispatch(handle, draw, NULL);
if(handle->wayland.parent != NULL) { if(handle->wayland.parent != NULL) {
MwLLDispatch(handle->wayland.parent, draw, NULL); MwLLDispatch(handle->wayland.parent, draw, NULL);
} }