From f3325a1cb8014f8073638f8322276562a863451c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 2 Nov 2016 14:12:11 +0100 Subject: [PATCH] [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 --- helpers/killer/killer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers/killer/killer.cpp b/helpers/killer/killer.cpp index 3b4e21c966..863979ec35 100644 --- a/helpers/killer/killer.cpp +++ b/helpers/killer/killer.cpp @@ -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"));