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(+) Index: plasma-workspace-5.15.3/startkde/startplasmacompositor.cmake =================================================================== --- plasma-workspace-5.15.3.orig/startkde/startplasmacompositor.cmake +++ plasma-workspace-5.15.3/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. +export GDK_BACKEND=x11 + # Get a property value from org.freedesktop.locale1 queryLocale1() { qdbus-qt5 --system org.freedesktop.locale1 /org/freedesktop/locale1 "$1"