summaryrefslogtreecommitdiff
path: root/mate-panel/panel-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-util.h')
-rw-r--r--mate-panel/panel-util.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/mate-panel/panel-util.h b/mate-panel/panel-util.h
index fb1303a3..b80740f8 100644
--- a/mate-panel/panel-util.h
+++ b/mate-panel/panel-util.h
@@ -3,7 +3,10 @@
#include <gio/gio.h>
#include <gtk/gtk.h>
+
+#ifdef HAVE_X11
#include <X11/Xlib.h>
+#endif
#ifdef __cplusplus
extern "C" {
@@ -67,10 +70,13 @@ void panel_util_set_tooltip_text (GtkWidget *widget,
GFile *panel_util_get_file_optional_homedir (const char *location);
-Window panel_util_get_current_active_window (GtkWidget *toplevel);
+#ifdef HAVE_X11
+Window panel_util_get_current_active_x11_window (GtkWidget *toplevel);
-void panel_util_set_current_active_window (GtkWidget *toplevel,
+void panel_util_set_current_active_x11_window (GtkWidget *toplevel,
Window window);
+#endif
+
#ifdef __cplusplus
}
#endif