From 570bf1824a84226427b917de3ba32229a99704fb Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 1 May 2023 19:46:21 +0100 Subject: [PATCH] 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 --- desktop-shell/shell.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index a508c6124..fdf3f9847 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -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); }