From bf82036e9ac826cf09a858ba671cc684b02ffa27 Mon Sep 17 00:00:00 2001 From: Supreeeme Date: Sat, 10 Feb 2024 00:24:48 -0500 Subject: [PATCH] xwayland: fix double wl_list_remove When destroying an xwayland surface, the dissociate and destroy handlers are called, but both of these were removing the map and unmap signal handlers, causing a segfault when the destroy handler went to remove them. Fixes #309 --- xwayland.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xwayland.c b/xwayland.c index eec7fb9..de81408 100644 --- a/xwayland.c +++ b/xwayland.c @@ -139,8 +139,6 @@ 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->map.link); - wl_list_remove(&xwayland_view->unmap.link); wl_list_remove(&xwayland_view->destroy.link); wl_list_remove(&xwayland_view->request_fullscreen.link); xwayland_view->xwayland_surface = NULL;