From 2896a0e9ab6f24e231a9d57558d085ddcaf06639 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 1 May 2023 19:46:38 +0100 Subject: [PATCH] text-backend: Don't restart client on exit When we're shutting down, don't try to restart the IM client. Signed-off-by: Daniel Stone --- compositor/text-backend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compositor/text-backend.c b/compositor/text-backend.c index ca0b3a7a..73a1eda3 100644 --- a/compositor/text-backend.c +++ b/compositor/text-backend.c @@ -988,7 +988,9 @@ input_method_client_notifier(struct wl_listener *listener, void *data) client_listener); text_backend->input_method.client = NULL; - respawn_input_method_process(text_backend); + + if (!text_backend->compositor->shutting_down) + respawn_input_method_process(text_backend); } static void