From 1931dcc605f9643827008cf271608ffb6056e6c6 Mon Sep 17 00:00:00 2001 From: buffet 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 8334c49..cdf4606 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); }