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
This commit is contained in:
Simon Ser 2023-12-22 18:26:02 +01:00
parent bbabb9aae8
commit 8e0de54e0e

View file

@ -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;