From 31217d3089f158e993c71c52c0703221c0ff97fa Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Tue, 24 Dec 2019 15:41:23 +0000 Subject: [PATCH] Fix view staying in view list, even after destroyed --- kiwmi/desktop/xdg_shell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kiwmi/desktop/xdg_shell.c b/kiwmi/desktop/xdg_shell.c index 13b31dc..4bf9b0e 100644 --- a/kiwmi/desktop/xdg_shell.c +++ b/kiwmi/desktop/xdg_shell.c @@ -37,6 +37,8 @@ xdg_surface_destroy_notify(struct wl_listener *listener, void *UNUSED(data)) wl_list_remove(&view->unmap.link); wl_list_remove(&view->destroy.link); + wl_list_remove(&view->link); + free(view); }