From 653c361420d658097a4affeb8bf256f02cc9bb2a Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 15 Apr 2017 22:02:05 +0200 Subject: Make gdk-x11 optional --- main/src/ui/notifications.vala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main/src') 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()) { -- cgit v1.2.3-70-g09d2