[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
This commit is contained in:
Kai Uwe Broulik 2017-04-05 15:31:35 +02:00
parent 1eb950a985
commit 2cbada20a1

View file

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