aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-06-19 15:07:41 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-06-19 22:57:57 +0200
commit6ff5b6f1c8b28a3fc272af7b61b5b3e3cfed3cba (patch)
treeea20f20882d7ac665a11b5c3dc5aeef058fc78c5 /src
parentfb226b66663bc0dd03e846ebfb5e74610316c6f4 (diff)
downloadarctica-greeter-6ff5b6f1c8b28a3fc272af7b61b5b3e3cfed3cba.tar.gz
arctica-greeter-6ff5b6f1c8b28a3fc272af7b61b5b3e3cfed3cba.tar.bz2
arctica-greeter-6ff5b6f1c8b28a3fc272af7b61b5b3e3cfed3cba.zip
src/: Only fiddle with MATE scaling factor settings if not in test-mode.
Diffstat (limited to 'src')
-rw-r--r--src/arctica-greeter.vala14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 2f8d40a..9fcf8f3 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -1279,10 +1279,6 @@ public class ArcticaGreeter : Object
debug ("Could not set DBUS_NAME: %s", e.message);
}
- var gsettings_mate_desktop_interface = new Settings ("org.mate.interface");
- int wsf_orig = gsettings_mate_desktop_interface.get_int ("window-scaling-factor");
- gsettings_mate_desktop_interface.set_int ("window-scaling-factor", 1);
-
bool do_show_version = false;
bool do_test_mode = false;
bool do_test_highcontrast = false;
@@ -1345,6 +1341,9 @@ public class ArcticaGreeter : Object
}
}
+ var gsettings_mate_desktop_interface = new Settings ("org.mate.interface");
+ int wsf_orig = 0;
+
if (!do_test_mode) {
/* Set the keyboard layout */
set_keyboard_layout ();
@@ -1362,6 +1361,8 @@ public class ArcticaGreeter : Object
if (!do_test_mode)
{
+ wsf_orig = gsettings_mate_desktop_interface.get_int ("window-scaling-factor");
+ gsettings_mate_desktop_interface.set_int ("window-scaling-factor", 1);
try
{
@@ -1596,7 +1597,10 @@ public class ArcticaGreeter : Object
}
}
- gsettings_mate_desktop_interface.set_int ("window-scaling-factor", wsf_orig);
+ if (!do_test_mode)
+ {
+ gsettings_mate_desktop_interface.set_int ("window-scaling-factor", wsf_orig);
+ }
var screen = Gdk.Screen.get_default ();
Gdk.X11.Display pDisplay = (Gdk.X11.Display) screen.get_display ();