mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kwin: kill via SIGKILL just in case XKillClient() does not get the job done
only for clients on the local machine tho Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9d5db89a12
commit
25c25215a4
1 changed files with 10 additions and 0 deletions
|
@ -1262,6 +1262,16 @@ void Client::closeWindow()
|
||||||
void Client::killWindow()
|
void Client::killWindow()
|
||||||
{
|
{
|
||||||
kDebug(1212) << "Client::killWindow():" << caption();
|
kDebug(1212) << "Client::killWindow():" << caption();
|
||||||
|
if (clientMachine()->isLocal()) {
|
||||||
|
pid_t pid = info->pid();
|
||||||
|
if (pid > 0) {
|
||||||
|
if (::kill(pid, SIGKILL) == -1) {
|
||||||
|
kWarning(1212) << "kill failed";
|
||||||
|
} else {
|
||||||
|
kDebug(1212) << "killed client via SIGKILL";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
XKillClient(display(), window()); // Always kill this client at the server
|
XKillClient(display(), window()); // Always kill this client at the server
|
||||||
destroyClient();
|
destroyClient();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue