From 8e0de54e0ecb3f3d0d374e0ceb03f7c613b639b8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 22 Dec 2023 18:26:02 +0100 Subject: [PATCH] desktop/layer-shell: don't configure uninitialized surfaces Fixes "A configure is sent to an uninitialized wlr_layer_surface_v1" errors. Closes: https://github.com/swaywm/sway/issues/7855 --- sway/desktop/layer_shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index 31d8558cc..14a28eec0 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c @@ -131,6 +131,9 @@ static void arrange_layer(struct sway_output *output, struct wl_list *list, &full_area.width, &full_area.height); wl_list_for_each(sway_layer, list, link) { struct wlr_layer_surface_v1 *layer = sway_layer->layer_surface; + if (!layer->initialized) { + continue; + } struct wlr_layer_surface_v1_state *state = &layer->current; if (exclusive != (state->exclusive_zone > 0)) { continue;