Kill the input method process when terminating the session

master
Aleix Pol 2020-08-10 13:22:01 +02:00 committed by Aleix Pol Gonzalez
parent f266a7cfa0
commit 664963c0d6
1 changed files with 4 additions and 1 deletions

View File

@ -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",