Commit 664963c0 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Kill the input method process when terminating the session

parent f266a7cf
......@@ -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",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment