summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2019-01-27 22:23:04 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2019-01-27 22:23:04 +0000
commit466de35cdd28fb18b5d3381d22ce11cf4556d718 (patch)
treee81c932b5807bf136bd91b6cad2e8f394098188f
parentc9f4e9490fedaa8e964f5ebb5ea4c262b627cc02 (diff)
downloadmgaonline-466de35cdd28fb18b5d3381d22ce11cf4556d718.tar
mgaonline-466de35cdd28fb18b5d3381d22ce11cf4556d718.tar.gz
mgaonline-466de35cdd28fb18b5d3381d22ce11cf4556d718.tar.bz2
mgaonline-466de35cdd28fb18b5d3381d22ce11cf4556d718.tar.xz
mgaonline-466de35cdd28fb18b5d3381d22ce11cf4556d718.zip
Force use of X11 backend when running on Wayland (mga#20680)
-rw-r--r--NEWS1
-rwxr-xr-xmgaapplet1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 3aa45d38..d6a3bf77 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+- force use of X11 backend when running on Wayland (mga#20680)
- mgaapplet-upgrade-helper: force use of Adwaita theme (mga#21425)
o prevents display issues if current theme (e.g. oxygen-gtk) is obsoleted
diff --git a/mgaapplet b/mgaapplet
index 48fca0d4..6b4c7330 100755
--- a/mgaapplet
+++ b/mgaapplet
@@ -30,6 +30,7 @@ use run_program;
use feature 'state';
BEGIN { unshift @::textdomains, 'mgaonline' }
+BEGIN { $ENV{GDK_BACKEND} = 'x11' if $ENV{WAYLAND_DISPLAY} }
use mygtk3 qw(gtknew); #- do not import gtkadd which conflicts with ugtk3 version
use ugtk3 qw(:all);