desktop-shell: Don't restart client on exit

When we're shutting down, don't try to restart the shell client.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2023-05-01 19:46:21 +01:00
parent 9aa68248a9
commit 570bf1824a

View file

@ -4359,8 +4359,10 @@ desktop_shell_client_destroy(struct wl_listener *listener, void *data)
* returning.
*/
if (!check_desktop_shell_crash_too_early(shell))
if (!shell->compositor->shutting_down &&
!check_desktop_shell_crash_too_early(shell)) {
respawn_desktop_shell_process(shell);
}
shell_fade_startup(shell);
}