From 3a942f565db24aff2af92751afcfd398551266f4 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Mon, 22 Jan 2024 18:53:44 +0300 Subject: [PATCH] layer-shell: handle commits from uninitialized surfaces Fixes: 2c69e19fd30c5ceac61d6af821c6c6875cd3f8b6 --- sway/desktop/layer_shell.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index c71abce7..b1eccc6c 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c @@ -205,9 +205,6 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) { wl_container_of(listener, surface, surface_commit); struct wlr_layer_surface_v1 *layer_surface = surface->layer_surface; - if (!layer_surface->initialized) { - return; - } uint32_t committed = layer_surface->current.committed; if (committed & WLR_LAYER_SURFACE_V1_STATE_LAYER) {