aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-06-18 08:38:40 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-06-18 08:48:10 +0200
commitcf054d0442a0c8dcf0ac7fe6384353b9e989e40d (patch)
tree7ba2f99a67a82ebd08a0d9bccdda9e70bb0f75e6
parent173a49883cf93e60fab6337aaead4e6dc96ca399 (diff)
downloadarctica-greeter-cf054d0442a0c8dcf0ac7fe6384353b9e989e40d.tar.gz
arctica-greeter-cf054d0442a0c8dcf0ac7fe6384353b9e989e40d.tar.bz2
arctica-greeter-cf054d0442a0c8dcf0ac7fe6384353b9e989e40d.zip
src/: Assure that org.mate.interface's window-scaling-factor is set to 1x scaling (we handle it ourselves via env vars and don't want the HiDPI effect to duplicated.
-rw-r--r--src/arctica-greeter.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index aa45327..e7a049d 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -1199,6 +1199,9 @@ 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;
@@ -1513,6 +1516,8 @@ public class ArcticaGreeter : Object
}
}
+ 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 ();
unowned X.Display xdisplay = pDisplay.get_xdisplay ();