From 2bfb94cf22605e74e20acfed110ded111735710d Mon Sep 17 00:00:00 2001 From: Armin K Date: Thu, 19 Sep 2013 19:11:13 +0200 Subject: wrap x11 specific code https://bugzilla.gnome.org/show_bug.cgi?id=708395 --- tp-account-widgets/tpaw-utils.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tp-account-widgets/tpaw-utils.c b/tp-account-widgets/tpaw-utils.c index 70f40868..d83f3967 100644 --- a/tp-account-widgets/tpaw-utils.c +++ b/tp-account-widgets/tpaw-utils.c @@ -33,7 +33,10 @@ #include "tpaw-utils.h" #include +#include +#ifdef GDK_WINDOWING_X11 #include +#endif #define DEBUG_FLAG TPAW_DEBUG_OTHER #include "tpaw-debug.h" @@ -235,8 +238,11 @@ tpaw_window_present_with_time (GtkWindow *window, gint x, y; gint w, h; +#ifdef GDK_WINDOWING_X11 /* Has no effect if the WM has viewports, like compiz */ - gdk_x11_window_move_to_current_desktop (gdk_window); + if (GDK_IS_X11_WINDOW (gdk_window)) + gdk_x11_window_move_to_current_desktop (gdk_window); +#endif /* If window is still off-screen, hide it to force it to * reposition on the current workspace. */ -- cgit v1.2.3