From c3820b965fe2476cd0e443d7ad41d20dfde81f8e Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 8 May 2023 04:13:00 +0200 Subject: src/idle-monitor.vala: Fix Gdk.Display -> Gdk.X11.Display casting fixes https://github.com/ArcticaProject/arctica-greeter/issues/48 --- src/idle-monitor.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/idle-monitor.vala b/src/idle-monitor.vala index b8e8963..72c21e1 100644 --- a/src/idle-monitor.vala +++ b/src/idle-monitor.vala @@ -83,7 +83,8 @@ public class IdleMonitor if (d is Gdk.X11.Display) { - display = d.get_xdisplay (); + Gdk.X11.Display pX11Display = (Gdk.X11.Display) d; + display = pX11Display.get_xdisplay (); } int sync_error_base; -- cgit v1.2.3