wayland: buffer destroy/recreate in SetWHImpl too

This commit is contained in:
IoIxD
2025-12-17 19:44:15 -07:00
parent 724b008220
commit b8a92f4ae0

View File

@@ -779,10 +779,9 @@ static void MwLLSetWHImpl(MwLL handle, int w, int h) {
if(handle->wayland.type == MWLL_WAYLAND_TOPLEVEL) {
xdg_surface_set_window_geometry(handle->wayland.toplevel->xdg_surface, 0, 0, handle->wayland.ww, handle->wayland.wh);
} else {
/* timed_redraw_by_epoch(handle->wayland.topmost_parent, 25);
recursive_draw(handle->wayland.topmost_parent); */
}
buffer_destroy(&handle->wayland);
buffer_setup(&handle->wayland);
MwLLDispatch(handle, draw, NULL);
}