[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
remotes/origin/mart/xdgv6ping
Kai Uwe Broulik 9 years ago
parent 1eb950a985
commit 2cbada20a1
  1. 2
      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),

Loading…
Cancel
Save