aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-18 01:03:33 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-18 01:03:33 -0600
commit467123dc99db4a537f1043e081cc4a6db136417b (patch)
tree320e84fb81fe056413b3c585401b4bd74fa2742b
parent254f799fde51faf71ce3ec5e7af75826f4263d81 (diff)
make sure to destroy wlr_scene_node of unmanaged clients
-rw-r--r--dwl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 8f6e816..c63dbe4 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2139,8 +2139,10 @@ unmapnotify(struct wl_listener *listener, void *data)
grabc = NULL;
}
wl_list_remove(&c->link);
- if (client_is_unmanaged(c))
+ if (client_is_unmanaged(c)) {
+ wlr_scene_node_destroy(c->scene);
return;
+ }
setmon(c, NULL, 0);
wl_list_remove(&c->flink);