summaryrefslogtreecommitdiff
path: root/mate-panel/panel-util.h
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-02-11 16:32:19 -0500
committerraveit65 <[email protected]>2019-03-10 15:11:45 +0100
commit59a633d981b39cecd530ef00ed9cada69bf809e5 (patch)
treee8819247852a2a6ff8930912b0045b6e89943281 /mate-panel/panel-util.h
parent7f72e0ad603cd76c7b65ce31af4afb691da36f88 (diff)
downloadmate-panel-59a633d981b39cecd530ef00ed9cada69bf809e5.tar.bz2
mate-panel-59a633d981b39cecd530ef00ed9cada69bf809e5.tar.xz
Wayland support for panel-util.c/.h
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