mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
wayland: Handle forced Xwayland shutdown elegantly
In the shutdown paths we check with the X11 display whether there's remaining clients. However this happens in paths that happen after the MetaX11Display vanished in the case of Xwayland crash. Since in that situation the clients are forcibly vanishing too, skip the client check. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1677>
This commit is contained in:
parent
9c71e208bd
commit
5671888775
@ -535,7 +535,8 @@ shutdown_xwayland_cb (gpointer data)
|
||||
META_EXPERIMENTAL_FEATURE_AUTOCLOSE_XWAYLAND))
|
||||
return G_SOURCE_REMOVE;
|
||||
|
||||
if (!can_terminate_xwayland (display->x11_display->xdisplay))
|
||||
if (display->x11_display &&
|
||||
!can_terminate_xwayland (display->x11_display->xdisplay))
|
||||
return G_SOURCE_CONTINUE;
|
||||
|
||||
meta_verbose ("Shutting down Xwayland");
|
||||
|
Loading…
Reference in New Issue
Block a user