Changeset View
Changeset View
Standalone View
Standalone View
client.cpp
Show First 20 Lines • Show All 1174 Lines • ▼ Show 20 Line(s) | 1173 | if (!clientMachine()->isLocal()) { | |||
---|---|---|---|---|---|
1175 | lst << QString::fromUtf8(clientMachine()->hostName()) << QStringLiteral("kill") << QString::number(pid); | 1175 | lst << QString::fromUtf8(clientMachine()->hostName()) << QStringLiteral("kill") << QString::number(pid); | ||
1176 | QProcess::startDetached(QStringLiteral("xon"), lst); | 1176 | QProcess::startDetached(QStringLiteral("xon"), lst); | ||
1177 | } else | 1177 | } else | ||
1178 | ::kill(pid, SIGTERM); | 1178 | ::kill(pid, SIGTERM); | ||
1179 | } else { | 1179 | } else { | ||
1180 | QString hostname = clientMachine()->isLocal() ? QStringLiteral("localhost") : QString::fromUtf8(clientMachine()->hostName()); | 1180 | QString hostname = clientMachine()->isLocal() ? QStringLiteral("localhost") : QString::fromUtf8(clientMachine()->hostName()); | ||
1181 | QProcess::startDetached(QStringLiteral(KWIN_KILLER_BIN), | 1181 | QProcess::startDetached(QStringLiteral(KWIN_KILLER_BIN), | ||
1182 | QStringList() << QStringLiteral("--pid") << QString::number(unsigned(pid)) << QStringLiteral("--hostname") << hostname | 1182 | QStringList() << QStringLiteral("--pid") << QString::number(unsigned(pid)) << QStringLiteral("--hostname") << hostname | ||
1183 | << QStringLiteral("--windowname") << caption(false /*full*/) | 1183 | << QStringLiteral("--windowname") << captionNormal() | ||
1184 | << QStringLiteral("--applicationname") << QString::fromUtf8(resourceClass()) | 1184 | << QStringLiteral("--applicationname") << QString::fromUtf8(resourceClass()) | ||
1185 | << QStringLiteral("--wid") << QString::number(window()) | 1185 | << QStringLiteral("--wid") << QString::number(window()) | ||
1186 | << QStringLiteral("--timestamp") << QString::number(timestamp), | 1186 | << QStringLiteral("--timestamp") << QString::number(timestamp), | ||
1187 | QString(), &m_killHelperPID); | 1187 | QString(), &m_killHelperPID); | ||
1188 | } | 1188 | } | ||
1189 | } | 1189 | } | ||
1190 | 1190 | | |||
1191 | void Client::doSetSkipTaskbar() | 1191 | void Client::doSetSkipTaskbar() | ||
▲ Show 20 Lines • Show All 975 Lines • Show Last 20 Lines |