summaryrefslogtreecommitdiffstats
path: root/dwl.c
diff options
context:
space:
mode:
authorDreamMaoMao <2523610504@qq.com>2025-03-12 16:17:44 +0800
committerRutherther <rutherther@noreply.codeberg.org>2025-03-13 20:36:18 +0000
commit4456f4536a483c127909151a84d7b62da4f40e8b (patch)
treed0b0d5746dd046c4ede98590a4b4b0704aa483bb /dwl.c
parente0f531d5087cbd1223577c77262ec7476c157088 (diff)
downloaddwl-main.tar.gz
dwl-main.tar.bz2
dwl-main.zip
fix: shouldn't configure uninitialized layer_surfacemain
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 395b81d..4816159 100644
--- a/dwl.c
+++ b/dwl.c
@@ -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;