~ruther/dwl

bc72af6e2430cfb8db2f5fa1b9800c86f445b6d6 — Leonardo Hernández Hernández 2 years ago bcc8ce7
fix unmanaged clients not being unlinked from the commit listener
1 files changed, 4 insertions(+), 4 deletions(-)

M dwl.c
M dwl.c => dwl.c +4 -4
@@ 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();

Do not follow this link