Kill the input method process when terminating the session
This commit is contained in:
parent
f266a7cfa0
commit
664963c0d6
1 changed files with 4 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue