plasma5-workspace/0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch
Luca Beltrame 5dd57eafe2 Accepting request 726767 from home:Vogtinator:fullwayland
- Change 0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch to not
  override GDK_BACKEND if already set
- Add a new plasmafullwayland.desktop which overrides use of X11
  backends of GTK and Qt

OBS-URL: https://build.opensuse.org/request/show/726767
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/plasma5-workspace?expand=0&rev=465
2019-08-28 14:15:28 +00:00

26 lines
1.0 KiB
Diff

From 654c5d9a21b641bd45e183ee30d7cb21ba314d35 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(+)
Index: plasma-workspace-5.16.4/startkde/startplasmacompositor.cmake
===================================================================
--- plasma-workspace-5.16.4.orig/startkde/startplasmacompositor.cmake
+++ plasma-workspace-5.16.4/startkde/startplasmacompositor.cmake
@@ -118,6 +118,10 @@ else
export QT_WAYLAND_FORCE_DPI=96
fi
+# GTK3 uses the wayland backend by default, but its implementation is not correct
+# enough to work well here. Window decorations are missing, for instance.
+[ -n "$GDK_BACKEND" ] || export GDK_BACKEND=x11
+
# Get a property value from org.freedesktop.locale1
queryLocale1() {
qdbus-qt5 --system org.freedesktop.locale1 /org/freedesktop/locale1 "$1"