From 664963c0d6322abd710be7b06f1b00acd2de8c54 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 10 Aug 2020 13:22:01 +0200 Subject: [PATCH] Kill the input method process when terminating the session --- main_wayland.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main_wayland.cpp b/main_wayland.cpp index ca2b02807d..a0b5e2327c 100644 --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -240,7 +240,10 @@ void ApplicationWayland::startSession() p->setProgram(program); p->setArguments(arguments); p->start(); - p->waitForStarted(); //do we really need to wait? + connect(waylandServer(), &WaylandServer::terminatingInternalClientConnection, p, [p] { + p->kill(); + p->waitForFinished(); + }); } } else { qWarning("Failed to launch the input method server: %s is an invalid command",