From a9649885ed35a527e208dd323ad4e2d7c08c0adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 18 May 2015 10:58:33 +0200 Subject: [PATCH] [wayland] Disable Qt's client side decoration for KWin KWin's own windows don't use decorations, so we don't want Qt's decos either. --- main_wayland.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main_wayland.cpp b/main_wayland.cpp index 0c22555f2b..b196872f9e 100644 --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -193,6 +193,7 @@ void ApplicationWayland::continueStartupWithX() QProcessEnvironment environment = QProcessEnvironment::systemEnvironment(); environment.remove(QStringLiteral("WAYLAND_SOCKET")); environment.remove(QStringLiteral("QT_QPA_PLATFORM")); + environment.remove(QStringLiteral("QT_WAYLAND_DISABLE_WINDOWDECORATION")); environment.insert(QStringLiteral("DISPLAY"), QString::fromUtf8(qgetenv("DISPLAY"))); // TODO: maybe create a socket per process? environment.insert(QStringLiteral("WAYLAND_DISPLAY"), waylandServer()->display()->socketName()); @@ -365,6 +366,7 @@ KWIN_EXPORT int kdemain(int argc, char * argv[]) qunsetenv("QT_DEVICE_PIXEL_RATIO"); qputenv("WAYLAND_SOCKET", QByteArray::number(server->createQtConnection())); + qputenv("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1"); KWin::ApplicationWayland a(argc, argv); a.setupTranslator();