plasma5-workspace/0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch
Luca Beltrame fb44578e9c Accepting request 590845 from home:Vogtinator:qxcbonwayland
- Add patches to not set QT_QPA_PLATFORM in a wayland session:
  * 0001-Call-KLocalizedString-setApplicationDomain-after-Q-A.patch
  * 0002-Add-platform-detection-to-KWorkspace-library-to-adju.patch
  * 0003-No-longer-export-QT_QPA_PLATFORM-env-variable-to-the.patch
  * 0001-Set-XDG_SESSION_TYPE-wayland-in-startplasmacomposito.patch
- Set GDK_BACKEND=x11 to work around GTK3 bugs:
  * 0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch
- Add a suffix to the wayland session's name:
  * 0001-Add-suffix-to-the-wayland-session-s-name.patch
- Apply upstream patches before downstream patches

OBS-URL: https://build.opensuse.org/request/show/590845
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/plasma5-workspace?expand=0&rev=388
2018-03-24 21:06:03 +00:00

29 lines
980 B
Diff

From 6de8c88ad78bb5b3d6e599b7dacd1b2359cf4fbb Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Sat, 24 Mar 2018 12:15:10 +0100
Subject: [PATCH] Set GTK_BACKEND=x11 in a wayland session
Works around missing window decorations and broken config file reading.
---
startkde/startplasmacompositor.cmake | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/startkde/startplasmacompositor.cmake b/startkde/startplasmacompositor.cmake
index dd9e304d..53be3be8 100644
--- a/startkde/startplasmacompositor.cmake
+++ b/startkde/startplasmacompositor.cmake
@@ -174,6 +174,10 @@ XDG_DATA_DIRS="@KDE_INSTALL_FULL_DATADIR@:/usr/share:/usr/local/share"
fi
export XDG_DATA_DIRS
+# GTK3 uses the wayland backend by default, but its implementation is not correct
+# enough to work well here. Window decorations are missing, for instance.
+export GDK_BACKEND=x11
+
# Make sure that D-Bus is running
if qdbus-qt5 >/dev/null 2>/dev/null; then
: # ok
--
2.16.2