aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r--src/arctica-greeter.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 73d6650..25cf962 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -185,7 +185,9 @@ public class ArcticaGreeter
{
/* Explicitly set the right scale before closing window */
var screen = Gdk.Screen.get_default ();
- var scale = screen.get_monitor_scale_factor (screen.get_number ());
+ var display = Gdk.Display.get_default();
+ var monitor = display.get_primary_monitor();
+ var scale = monitor.get_scale_factor ();
background_surface.set_device_scale (scale, scale);
/* Paint our background onto the root window before we close our own window */