diff options
author | Rui Matos <tiagomatos@gmail.com> | 2015-04-02 19:29:05 +0200 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2015-04-14 19:35:43 +0200 |
commit | e3c26253e53c61d16e17570a76d90bc43da1e5c9 (patch) | |
tree | 8d3e3c85cb1556567c4d9094cda2d9026828f2d0 /daemon | |
parent | e808f974e316f51b65fd0fa8089ae87fdfd58af1 (diff) | |
download | caribou-e3c26253e53c61d16e17570a76d90bc43da1e5c9.tar.gz |
daemon: Check that we're using the X backend before using it
This won't make us work correctly on other backends but at least we
won't print criticals anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=747273
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/daemon.vala | 5 |
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 { |