mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
Fix crash on shutdown when Xwayland is disabled
This commit is contained in:
parent
240a69ad63
commit
de69f0c156
1 changed files with 5 additions and 3 deletions
|
|
@ -494,9 +494,11 @@ void server_fini(struct sway_server *server) {
|
||||||
|
|
||||||
// TODO: free sway-specific resources
|
// TODO: free sway-specific resources
|
||||||
#if WLR_HAS_XWAYLAND
|
#if WLR_HAS_XWAYLAND
|
||||||
|
if (server->xwayland.wlr_xwayland != NULL) {
|
||||||
wl_list_remove(&server->xwayland_surface.link);
|
wl_list_remove(&server->xwayland_surface.link);
|
||||||
wl_list_remove(&server->xwayland_ready.link);
|
wl_list_remove(&server->xwayland_ready.link);
|
||||||
wlr_xwayland_destroy(server->xwayland.wlr_xwayland);
|
wlr_xwayland_destroy(server->xwayland.wlr_xwayland);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
wl_display_destroy_clients(server->wl_display);
|
wl_display_destroy_clients(server->wl_display);
|
||||||
wlr_backend_destroy(server->backend);
|
wlr_backend_destroy(server->backend);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue