layer-shell: handle commits from uninitialized surfaces

Fixes: 2c69e19fd3
This commit is contained in:
Kirill Primak 2024-01-22 18:53:44 +03:00
parent e8c421e917
commit 3a942f565d

View file

@ -205,9 +205,6 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
wl_container_of(listener, surface, surface_commit); wl_container_of(listener, surface, surface_commit);
struct wlr_layer_surface_v1 *layer_surface = surface->layer_surface; struct wlr_layer_surface_v1 *layer_surface = surface->layer_surface;
if (!layer_surface->initialized) {
return;
}
uint32_t committed = layer_surface->current.committed; uint32_t committed = layer_surface->current.committed;
if (committed & WLR_LAYER_SURFACE_V1_STATE_LAYER) { if (committed & WLR_LAYER_SURFACE_V1_STATE_LAYER) {