[helpers/killer] Force to platform XCB

Summary:
The killer can only kill X11 windows. It is also only invoked for Client
and not for ShellClient. The tool interacts with QX11Info which means it
would crash if tried to use on Wayland.

Thus force platform xcb on the tool.

Test Plan: Killer shows for Xwayland windows.

Reviewers: #kwin, #plasma_on_wayland

Subscribers: plasma-devel, kwin

Tags: #plasma_on_wayland, #kwin

Differential Revision: https://phabricator.kde.org/D3228
icc-effect-5.14.5
Martin Gräßlin 2016-11-02 14:12:11 +01:00
parent 2a15592571
commit f3325a1cb8
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ DEALINGS IN THE SOFTWARE.
int main(int argc, char* argv[])
{
KLocalizedString::setApplicationDomain("kwin");
qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("xcb"));
QApplication app(argc, argv);
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("dialog-warning")));
QCoreApplication::setApplicationName(QStringLiteral("kwin_killer_helper"));