From c05a47650f63de450cacbf297114e7c32b8c6be0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 9 Dec 2025 22:38:54 +0100 Subject: [PATCH] xwayland: remove associate/dissociate listeners --- xwayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xwayland.c b/xwayland.c index 3df7a08..38d0405 100644 --- a/xwayland.c +++ b/xwayland.c @@ -139,6 +139,8 @@ handle_xwayland_surface_destroy(struct wl_listener *listener, void *data) struct cg_xwayland_view *xwayland_view = wl_container_of(listener, xwayland_view, destroy); struct cg_view *view = &xwayland_view->view; + wl_list_remove(&xwayland_view->associate.link); + wl_list_remove(&xwayland_view->dissociate.link); wl_list_remove(&xwayland_view->destroy.link); wl_list_remove(&xwayland_view->request_fullscreen.link); xwayland_view->xwayland_surface = NULL;