From 466de35cdd28fb18b5d3381d22ce11cf4556d718 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 27 Jan 2019 22:23:04 +0000 Subject: Force use of X11 backend when running on Wayland (mga#20680) --- NEWS | 1 + mgaapplet | 1 + 2 files changed, 2 insertions(+) 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); -- cgit v1.2.1