aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2017-04-05 15:31:35 +0200
committerKai Uwe Broulik <[email protected]>2017-04-05 15:31:35 +0200
commit2cbada20a10ea464ec038c33a55738a6be7b63bc (patch)
tree3d06893e091ac49797856d7749ee3266064616a4
parent1eb950a9851441d298cf8c252aa19819001b52c8 (diff)
[KWin Killer] Send short caption to it
Use caption(false) otherwise it includes the "(Not Responding)" part. Unfortunately we also lose the <1> and <2> suffix. Differential Revision: https://phabricator.kde.org/D5307
-rw-r--r--client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.cpp b/client.cpp
index 1ceeace..4697348 100644
--- a/client.cpp
+++ b/client.cpp
@@ -1183,7 +1183,7 @@ void Client::killProcess(bool ask, xcb_timestamp_t timestamp)
QString hostname = clientMachine()->isLocal() ? QStringLiteral("localhost") : QString::fromUtf8(clientMachine()->hostName());
QProcess::startDetached(QStringLiteral(KWIN_KILLER_BIN),
QStringList() << QStringLiteral("--pid") << QString::number(unsigned(pid)) << QStringLiteral("--hostname") << hostname
- << QStringLiteral("--windowname") << caption()
+ << QStringLiteral("--windowname") << caption(false /*full*/)
<< QStringLiteral("--applicationname") << QString::fromUtf8(resourceClass())
<< QStringLiteral("--wid") << QString::number(window())
<< QStringLiteral("--timestamp") << QString::number(timestamp),