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

4
dwl.c
View file

@ -2139,8 +2139,10 @@ unmapnotify(struct wl_listener *listener, void *data)
grabc = NULL; grabc = NULL;
} }
wl_list_remove(&c->link); wl_list_remove(&c->link);
if (client_is_unmanaged(c)) if (client_is_unmanaged(c)) {
wlr_scene_node_destroy(c->scene);
return; return;
}
setmon(c, NULL, 0); setmon(c, NULL, 0);
wl_list_remove(&c->flink); wl_list_remove(&c->flink);