make sure to destroy wlr_scene_node of unmanaged clients

This commit is contained in:
Leonardo Hernández Hernández 2022-03-18 01:03:33 -06:00
parent 254f799fde
commit 467123dc99
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 3 additions and 1 deletions

4
dwl.c
View File

@ -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);