summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'daemon')
-rw-r--r--daemon/daemon.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/daemon/daemon.vala b/daemon/daemon.vala
index 59c3869..14c32ad 100644
--- a/daemon/daemon.vala
+++ b/daemon/daemon.vala
@@ -54,7 +54,10 @@ namespace Caribou {
}
uint32 get_timestamp () {
- return Gdk.X11Display.get_user_time (display);
+ if (display is Gdk.X11Display)
+ return Gdk.X11Display.get_user_time (display);
+ else
+ return 0;
}
void set_entry_location (Atspi.Accessible acc) throws Error {