aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2023-05-08 04:13:00 +0200
committerRobert Tari <robert@tari.in>2023-05-08 04:13:00 +0200
commitc3820b965fe2476cd0e443d7ad41d20dfde81f8e (patch)
tree86ac0bb071af05adcbce9413650a09c9ea33bf01
parent886d9b70cbe8d948843d75f648f852c437c0a6e2 (diff)
downloadarctica-greeter-c3820b965fe2476cd0e443d7ad41d20dfde81f8e.tar.gz
arctica-greeter-c3820b965fe2476cd0e443d7ad41d20dfde81f8e.tar.bz2
arctica-greeter-c3820b965fe2476cd0e443d7ad41d20dfde81f8e.zip
src/idle-monitor.vala: Fix Gdk.Display -> Gdk.X11.Display casting
fixes https://github.com/ArcticaProject/arctica-greeter/issues/48
-rw-r--r--src/idle-monitor.vala3
1 files changed, 2 insertions, 1 deletions
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;