mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-07 02:38:04 +02:00
xdg-shell/layer-shell: use same unmap assert
This commit is contained in:
parent
fba00c4a04
commit
e3e8877aa6
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue