diff options
author | Papoteur <papoteur@mageia.org> | 2019-04-13 17:58:20 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2019-04-13 17:58:20 +0200 |
commit | 916bc821331b7f0ee392f935bf2109e5754fb060 (patch) | |
tree | a07cabfad4d2053f7b9ab383ce006370ced5d5a4 | |
parent | 5ff5840cab59b3d19dc2e6972ed41a3f7b6a8af6 (diff) | |
download | mageiawelcome-916bc821331b7f0ee392f935bf2109e5754fb060.tar mageiawelcome-916bc821331b7f0ee392f935bf2109e5754fb060.tar.gz mageiawelcome-916bc821331b7f0ee392f935bf2109e5754fb060.tar.bz2 mageiawelcome-916bc821331b7f0ee392f935bf2109e5754fb060.tar.xz mageiawelcome-916bc821331b7f0ee392f935bf2109e5754fb060.zip |
Specific detection of screensize for Gnome pre 3.22
-rw-r--r-- | qml/mageiawelcome.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py index 8986333..e5aea47 100644 --- a/qml/mageiawelcome.py +++ b/qml/mageiawelcome.py @@ -47,10 +47,10 @@ class ConfList(QAbstractListModel): if desktop == 'Gnome Wayland': import gi gi.require_version('Gdk', '3.0') - from gi.repository.Gdk import Display + from gi.repository.Gdk import Screen # pre-3.22, otherwise deprecated - #factor = Gdk.Screen.get_default().get_monitor_scale_factor(0) - self.screen_factor = Display.get_default().get_monitor(0).get_scale_factor() + self.screen_factor = Gdk.Screen.get_default().get_monitor_scale_factor(0) + #self.screen_factor = Display.get_default().get_monitor(0).get_scale_factor() # Search active network connections net = QNetworkConfigurationManager() |