[unique] gdkx.h is x11 only
- From: Emmanuele Bassi <ebassi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [unique] gdkx.h is x11 only
- Date: Sun, 1 Nov 2009 18:30:30 +0000 (UTC)
commit 160200d7e36a648551034ee46cc4cb2962e590a3
Author: Anders F Bjorklund <afb users sourceforge net>
Date: Mon Oct 19 15:06:11 2009 +0200
gdkx.h is x11 only
https://bugzilla.gnome.org/show_bug.cgi?id=598925
Signed-off-by: Emmanuele Bassi <ebassi gnome org>
unique/uniquebackend.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/unique/uniquebackend.c b/unique/uniquebackend.c
index b79a2a7..6719685 100644
--- a/unique/uniquebackend.c
+++ b/unique/uniquebackend.c
@@ -38,8 +38,10 @@
#include <glib/gi18n.h>
#include <gdk/gdk.h>
+#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#include <X11/Xatom.h>
+#endif
#include "uniquebackend.h"
#include "uniqueinternals.h"
@@ -209,10 +211,12 @@ unique_backend_get_workspace (UniqueBackend *backend)
{
GdkDisplay *display;
GdkWindow *root_win;
+#ifdef GDK_WINDOWING_X11
Atom _net_current_desktop, type;
int format;
unsigned long n_items, bytes_after;
unsigned char *data_return = 0;
+#endif
g_return_val_if_fail (UNIQUE_IS_BACKEND (backend), 0);
@@ -222,6 +226,7 @@ unique_backend_get_workspace (UniqueBackend *backend)
display = gdk_screen_get_display (backend->screen);
root_win = gdk_screen_get_root_window (backend->screen);
+#ifdef GDK_WINDOWING_X11
_net_current_desktop =
gdk_x11_get_xatom_by_name_for_display (display, "_NET_CURRENT_DESKTOP");
@@ -238,6 +243,7 @@ unique_backend_get_workspace (UniqueBackend *backend)
backend->workspace = (guint) data_return[0];
XFree (data_return);
}
+#endif
return backend->workspace;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]