diff --git a/xwayland.c b/xwayland.c index 078a853..8f1ecdd 100644 --- a/xwayland.c +++ b/xwayland.c @@ -153,6 +153,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;