summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin K <krejzi@email.com>2013-09-19 17:11:13 (GMT)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-12 16:38:51 (GMT)
commit2bfb94cf22605e74e20acfed110ded111735710d (patch)
treebd64df68a493d8c3dac6be24410893abe7e1d9a5
parent505360b4be41a1bce0d06a3cbb4ca2eedc24c188 (diff)
downloadtelepathy-account-widgets-2bfb94cf22605e74e20acfed110ded111735710d.tar.gz
telepathy-account-widgets-2bfb94cf22605e74e20acfed110ded111735710d.tar.xz
wrap x11 specific code
https://bugzilla.gnome.org/show_bug.cgi?id=708395
-rw-r--r--tp-account-widgets/tpaw-utils.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tp-account-widgets/tpaw-utils.c b/tp-account-widgets/tpaw-utils.c
index 70f4086..d83f396 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. */