diff options
author | Armin K <krejzi@email.com> | 2013-09-19 19:11:13 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-12 12:38:51 -0400 |
commit | 2bfb94cf22605e74e20acfed110ded111735710d (patch) | |
tree | bd64df68a493d8c3dac6be24410893abe7e1d9a5 /tp-account-widgets | |
parent | 505360b4be41a1bce0d06a3cbb4ca2eedc24c188 (diff) | |
download | telepathy-account-widgets-2bfb94cf22605e74e20acfed110ded111735710d.tar.gz |
wrap x11 specific code
https://bugzilla.gnome.org/show_bug.cgi?id=708395
Diffstat (limited to 'tp-account-widgets')
-rw-r--r-- | tp-account-widgets/tpaw-utils.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 <glib/gi18n-lib.h> +#include <gtk/gtk.h> +#ifdef GDK_WINDOWING_X11 #include <gdk/gdkx.h> +#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. */ |