diff --git a/0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch b/0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch new file mode 100644 index 0000000..1390780 --- /dev/null +++ b/0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch @@ -0,0 +1,28 @@ +From 6de8c88ad78bb5b3d6e599b7dacd1b2359cf4fbb Mon Sep 17 00:00:00 2001 +From: Fabian Vogt +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 + diff --git a/plasma5-workspace.changes b/plasma5-workspace.changes index a8708b2..192c06c 100644 --- a/plasma5-workspace.changes +++ b/plasma5-workspace.changes @@ -43,12 +43,6 @@ Wed Nov 28 07:52:49 UTC 2018 - fabian@ritter-vogt.de * [Baloo Runner] Filter duplicates and prefer specific type matches * [clipboard] Limit length of clipboard text item visualisation -------------------------------------------------------------------- -Fri Nov 9 13:04:07 UTC 2018 - Fabian Vogt - -- Remove 0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch: - * GTK handles the CSD protocol properly now - ------------------------------------------------------------------- Tue Nov 6 15:53:52 UTC 2018 - fabian@ritter-vogt.de diff --git a/plasma5-workspace.spec b/plasma5-workspace.spec index 1398e0f..5990e0e 100644 --- a/plasma5-workspace.spec +++ b/plasma5-workspace.spec @@ -46,6 +46,7 @@ Source3: baselibs.conf Patch501: 0001-Rename-qdbus-in-startkde.patch # PATCH-FIX-OPENSUSE 0001-Ignore-default-sddm-face-icons.patch boo#1001364 fabian@ritter-vogt.de -- Ignore default sddm face icons Patch502: 0001-Ignore-default-sddm-face-icons.patch +Patch503: 0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch # PATCH-FIX-UPSTREAM (once sddm part merged) Patch504: 0001-Add-suffix-to-the-wayland-session-s-name.patch # PATCH-FEATURE-OPENSUSE