2019-09-20 11:01:24 +00:00
|
|
|
From 3deadbfcdf776eb0c994bb4d719e601160943bfa Mon Sep 17 00:00:00 2001
|
2019-02-06 18:16:42 +00:00
|
|
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
2019-09-20 11:01:24 +00:00
|
|
|
Date: Wed, 28 Aug 2019 15:09:49 +0200
|
2019-02-06 18:16:42 +00:00
|
|
|
Subject: [PATCH] Set GTK_BACKEND=x11 in a wayland session
|
|
|
|
|
2019-09-20 11:01:24 +00:00
|
|
|
Works around missing window decorations and broken config file reading
|
2019-02-06 18:16:42 +00:00
|
|
|
---
|
2019-09-20 11:01:24 +00:00
|
|
|
startkde/startplasma-waylandsession.cpp | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
2019-02-06 18:16:42 +00:00
|
|
|
|
2021-01-24 21:11:13 +00:00
|
|
|
Index: plasma-workspace-5.15.80git.20210121T134153~83e5f9011/startkde/startplasma-waylandsession.cpp
|
|
|
|
===================================================================
|
|
|
|
--- plasma-workspace-5.15.80git.20210121T134153~83e5f9011.orig/startkde/startplasma-waylandsession.cpp 2021-01-21 14:41:53.000000000 +0100
|
|
|
|
+++ plasma-workspace-5.15.80git.20210121T134153~83e5f9011/startkde/startplasma-waylandsession.cpp 2021-01-22 08:39:19.900539408 +0100
|
|
|
|
@@ -47,6 +47,11 @@
|
2019-09-20 11:01:24 +00:00
|
|
|
out << "startplasma-waylandsession: Starting up...";
|
2019-02-06 18:16:42 +00:00
|
|
|
|
2019-09-20 11:01:24 +00:00
|
|
|
if (qEnvironmentVariableIsSet("DISPLAY")) {
|
|
|
|
+ // GTK3 uses the wayland backend by default, but its implementation is not correct
|
|
|
|
+ // enough to work well here. Window decorations are missing, for instance.
|
|
|
|
+ if (!qEnvironmentVariableIsSet("GDK_BACKEND")) {
|
|
|
|
+ qputenv("GDK_BACKEND", "x11");
|
|
|
|
+ }
|
|
|
|
setupX11();
|
|
|
|
} else {
|
|
|
|
qWarning() << "running kwin without Xwayland support";
|