xdg-shell/layer-shell: use same unmap assert

This commit is contained in:
rewine 2026-04-13 10:48:17 +08:00 committed by Isaac Freund
parent fba00c4a04
commit e3e8877aa6
2 changed files with 2 additions and 0 deletions

View file

@ -394,6 +394,7 @@ static void layer_surface_role_commit(struct wlr_surface *wlr_surface) {
layer_surface_reset(surface);
assert(!surface->initialized);
assert(!surface->initial_commit);
surface->initial_commit = false;
} else {
surface->initial_commit = !surface->initialized;

View file

@ -320,6 +320,7 @@ static void xdg_surface_role_commit(struct wlr_surface *wlr_surface) {
reset_xdg_surface_role_object(surface);
reset_xdg_surface(surface);
assert(!surface->initialized);
assert(!surface->initial_commit);
surface->initial_commit = false;
} else {