aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-10-29 19:02:44 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-10-29 19:02:44 -0500
commit99f062273e6a04abe4258c23284087698a8ecad8 (patch)
treedca17823d9fb25eda22861be5f3ee0a6ae866cf5
parent8298f20a7174eb9c70b375b92810ab3320fedf97 (diff)
only destroy monitor's layer surfaces at destroy
-rw-r--r--dwl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/dwl.c b/dwl.c
index 7d41883..8b019da 100644
--- a/dwl.c
+++ b/dwl.c
@@ -644,12 +644,9 @@ cleanupmon(struct wl_listener *listener, void *data)
LayerSurface *l, *tmp;
int i;
- for (i = 0; i <= ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY; i++) {
- wl_list_for_each_safe(l, tmp, &m->layers[i], link) {
- wlr_scene_node_set_enabled(&l->scene->node, 0);
+ for (i = 0; i <= ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY; i++)
+ wl_list_for_each_safe(l, tmp, &m->layers[i], link)
wlr_layer_surface_v1_destroy(l->layer_surface);
- }
- }
wl_list_remove(&m->destroy.link);
wl_list_remove(&m->frame.link);