From bc72af6e2430cfb8db2f5fa1b9800c86f445b6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Sun, 18 Sep 2022 15:20:00 -0500 Subject: fix unmanaged clients not being unlinked from the commit listener --- dwl.c | 8 ++++---- 1 file 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(); -- cgit v1.2.3