mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
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:
parent
bbabb9aae8
commit
8e0de54e0e
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue