1
0
Fork 1
mirror of https://codeberg.org/dwl/dwl.git synced 2025-04-17 03:53:16 -07:00

fix: shouldn't configure uninitialized layer_surface

This commit is contained in:
DreamMaoMao 2025-03-12 16:17:44 +08:00 committed by Rutherther
parent e0f531d508
commit 4456f4536a

3
dwl.c
View file

@ -551,6 +551,9 @@ arrangelayer(Monitor *m, struct wl_list *list, struct wlr_box *usable_area, int
wl_list_for_each(l, list, link) {
struct wlr_layer_surface_v1 *layer_surface = l->layer_surface;
if (!layer_surface->initialized)
continue;
if (exclusive != (layer_surface->current.exclusive_zone > 0))
continue;