diff options
author | Marvin W <git@larma.de> | 2017-04-15 22:02:05 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-04-15 22:02:05 +0200 |
commit | 653c361420d658097a4affeb8bf256f02cc9bb2a (patch) | |
tree | dc18bc8afebe4ee46ca97be4f68e9c97a3640ec0 /main/src | |
parent | a0b2a66ef0e71918b27207889519f3dc270ebb43 (diff) | |
download | dino-653c361420d658097a4affeb8bf256f02cc9bb2a.tar.gz dino-653c361420d658097a4affeb8bf256f02cc9bb2a.zip |
Make gdk-x11 optional
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/ui/notifications.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/src/ui/notifications.vala b/main/src/ui/notifications.vala index af2c80fe..e5eda271 100644 --- a/main/src/ui/notifications.vala +++ b/main/src/ui/notifications.vala @@ -36,12 +36,16 @@ public class Notifications : Object { notifications[conversation].set_hint("transient", true); notifications[conversation].add_action("default", "Open", () => { conversation_selected(conversation); +#if GDK3_WITH_X11 Gdk.X11.Window x11window = window.get_window() as Gdk.X11.Window; if (x11window != null) { window.present_with_time(Gdk.X11.get_server_time(x11window)); } else { window.present(); } +#else + window.present(); +#endif }); } if (!stream_interactor.get_module(ChatInteraction.IDENTITY).is_active_focus()) { |