summarylogtreecommitdiffstats
path: root/gdk-backend.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gdk-backend.patch')
-rw-r--r--gdk-backend.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk-backend.patch b/gdk-backend.patch
index 334861b8a526..16ec97ecaca7 100644
--- a/gdk-backend.patch
+++ b/gdk-backend.patch
@@ -8,8 +8,8 @@ index 4d045c0..3dccecb 100644
- // Set GDK_BACKEND=x11 to prevent warnings
- _ = os.Setenv("GDK_BACKEND", "x11")
-+ // Set GDK_BACKEND=x11 if currently unset and XDG_SESSION_TYPE isn't wayland to prevent warnings
-+ if os.Getenv("GDK_BACKEND") == "" && os.Getenv("XDG_SESSION_TYPE") != "wayland" {
++ // Set GDK_BACKEND=x11 if currently unset and XDG_SESSION_TYPE is unset, unspecified or x11 to prevent warnings
++ if os.Getenv("GDK_BACKEND") == "" && (os.Getenv("XDG_SESSION_TYPE") == "" || os.Getenv("XDG_SESSION_TYPE") == "unspecified" || os.Getenv("XDG_SESSION_TYPE") == "x11") {
+ _ = os.Setenv("GDK_BACKEND", "x11")
+ }