aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-04-15 22:02:05 +0200
committerMarvin W <git@larma.de>2017-04-15 22:02:05 +0200
commit653c361420d658097a4affeb8bf256f02cc9bb2a (patch)
treedc18bc8afebe4ee46ca97be4f68e9c97a3640ec0 /main/src
parenta0b2a66ef0e71918b27207889519f3dc270ebb43 (diff)
downloaddino-653c361420d658097a4affeb8bf256f02cc9bb2a.tar.gz
dino-653c361420d658097a4affeb8bf256f02cc9bb2a.zip
Make gdk-x11 optional
Diffstat (limited to 'main/src')
-rw-r--r--main/src/ui/notifications.vala4
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()) {