Compare commits

..

2 commits

Author SHA1 Message Date
d340c64ca3 wayland: fix weird regressiong 2026-01-12 18:50:33 -07:00
14e55b7f53 wayland: fix weird regression 2026-01-12 18:48:22 -07:00

View file

@ -1404,8 +1404,6 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
setup_toplevel(r, x, y); setup_toplevel(r, x, y);
} else { } else {
setup_sublevel(parent, r, x, y); setup_sublevel(parent, r, x, y);
MwLLDispatch(parent, draw, NULL);
parent->wayland.events_pending += 1;
} }
framebuffer_setup(&r->wayland); framebuffer_setup(&r->wayland);
@ -1414,6 +1412,9 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
region_setup(r); region_setup(r);
MwLLForceRender(r); MwLLForceRender(r);
if(parent != NULL) {
MwLLForceRender(parent);
}
return r; return r;
} }
@ -1504,10 +1505,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,9 +1528,7 @@ refresh:
framebuffer_destroy(&handle->wayland); framebuffer_destroy(&handle->wayland);
framebuffer_setup(&handle->wayland); framebuffer_setup(&handle->wayland);
if(handle->wayland.parent != NULL) { MwLLDispatch(handle, draw, NULL);
MwLLDispatch(handle->wayland.parent, draw, NULL);
}
} }
static void MwLLPolygonImpl(MwLL handle, MwPoint* points, int points_count, MwLLColor color) { static void MwLLPolygonImpl(MwLL handle, MwPoint* points, int points_count, MwLLColor color) {