summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-18 15:20:00 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-18 15:35:54 -0500
commitbc72af6e2430cfb8db2f5fa1b9800c86f445b6d6 (patch)
tree3ee2fc08c45d10ecdfe95e0a3a3f0507834f5154
parentbcc8ce7a40d30023eb97934419c2102c91846563 (diff)
fix unmanaged clients not being unlinked from the commit listener
-rw-r--r--dwl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dwl.c b/dwl.c
index 4d8100d..8ed6ae3 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2362,14 +2362,14 @@ unmapnotify(struct wl_listener *listener, void *data)
if (c->mon)
c->mon->un_map = 1;
- if (client_is_unmanaged(c)) {
- wlr_scene_node_destroy(c->scene);
- return;
- }
+ if (client_is_unmanaged(c))
+ goto end;
wl_list_remove(&c->link);
setmon(c, NULL, 0);
wl_list_remove(&c->flink);
+
+end:
wl_list_remove(&c->commit.link);
wlr_scene_node_destroy(c->scene);
printstatus();