diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-gui.c | 10 |
1 files 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 } } |