forked from mirror/dwl
only destroy monitor's layer surfaces at destroy
This commit is contained in:
parent
8298f20a71
commit
99f062273e
1 changed files with 2 additions and 5 deletions
7
dwl.c
7
dwl.c
|
@ -644,12 +644,9 @@ cleanupmon(struct wl_listener *listener, void *data)
|
||||||
LayerSurface *l, *tmp;
|
LayerSurface *l, *tmp;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i <= ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY; i++) {
|
for (i = 0; i <= ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY; i++)
|
||||||
wl_list_for_each_safe(l, tmp, &m->layers[i], link) {
|
wl_list_for_each_safe(l, tmp, &m->layers[i], link)
|
||||||
wlr_scene_node_set_enabled(&l->scene->node, 0);
|
|
||||||
wlr_layer_surface_v1_destroy(l->layer_surface);
|
wlr_layer_surface_v1_destroy(l->layer_surface);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
wl_list_remove(&m->destroy.link);
|
wl_list_remove(&m->destroy.link);
|
||||||
wl_list_remove(&m->frame.link);
|
wl_list_remove(&m->frame.link);
|
||||||
|
|
Loading…
Reference in a new issue