mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-11-04 20:23:13 +00:00
fix segfault when XWayland fails to initialize
Fixes https://codeberg.org/dwl/dwl/issues/1202
This commit is contained in:
@@ -876,8 +876,10 @@ cleanuplisteners(void)
|
|||||||
wl_list_remove(&new_session_lock.link);
|
wl_list_remove(&new_session_lock.link);
|
||||||
wl_list_remove(&new_foreign_toplevel_capture_request.link);
|
wl_list_remove(&new_foreign_toplevel_capture_request.link);
|
||||||
#ifdef XWAYLAND
|
#ifdef XWAYLAND
|
||||||
wl_list_remove(&new_xwayland_surface.link);
|
if (xwayland) {
|
||||||
wl_list_remove(&xwayland_ready.link);
|
wl_list_remove(&new_xwayland_surface.link);
|
||||||
|
wl_list_remove(&xwayland_ready.link);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user