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