From 3b5c00ab4f4ee6eecca866cd35a5d05916d2bbfb Mon Sep 17 00:00:00 2001 From: Gustavo Noronha Silva Date: Thu, 15 Aug 2013 18:03:04 -0300 Subject: Condition calling gdk_x11 API with build and runtime checks --- lib/ephy-gui.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c index 2f5f81252..d67bc02ce 100644 --- a/lib/ephy-gui.c +++ b/lib/ephy-gui.c @@ -392,8 +392,14 @@ ephy_gui_window_update_user_time (GtkWidget *window, if (user_time != 0) { gtk_widget_realize (window); - gdk_x11_window_set_user_time (gtk_widget_get_window (window), - user_time); + +#ifdef GDK_WINDOWING_X11 + if (GDK_IS_X11_DISPLAY (gdk_display_get_default ())) + { + gdk_x11_window_set_user_time (gtk_widget_get_window (window), + user_time); + } +#endif } } -- cgit v1.2.3