diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-09-18 15:20:00 -0500 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-09-18 15:35:54 -0500 |
commit | bc72af6e2430cfb8db2f5fa1b9800c86f445b6d6 (patch) | |
tree | 3ee2fc08c45d10ecdfe95e0a3a3f0507834f5154 | |
parent | bcc8ce7a40d30023eb97934419c2102c91846563 (diff) |
fix unmanaged clients not being unlinked from the commit listener
-rw-r--r-- | dwl.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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(); |