[telepathy-account-widgets] wrap x11 specific code



commit 2bfb94cf22605e74e20acfed110ded111735710d
Author: Armin K <krejzi email com>
Date:   Thu Sep 19 19:11:13 2013 +0200

    wrap x11 specific code
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708395

 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 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. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]