summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/xstuff.c5
-rw-r--r--mate-panel/xstuff.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/mate-panel/xstuff.c b/mate-panel/xstuff.c
index 199b8620..02627a18 100644
--- a/mate-panel/xstuff.c
+++ b/mate-panel/xstuff.c
@@ -46,6 +46,11 @@ static gboolean xstuff_display_is_dead = FALSE;
#define ZOOM_STEPS 14
#define ZOOM_DELAY 10
+gboolean is_using_x11 ()
+{
+ return GDK_IS_X11_DISPLAY (gdk_display_get_default ());
+}
+
typedef struct {
int size;
int size_start;
diff --git a/mate-panel/xstuff.h b/mate-panel/xstuff.h
index 0bf29738..5d3c4497 100644
--- a/mate-panel/xstuff.h
+++ b/mate-panel/xstuff.h
@@ -12,6 +12,8 @@
#include "panel-enums-gsettings.h"
+gboolean is_using_x11 (void);
+
void xstuff_zoom_animate (GtkWidget *widget,
cairo_surface_t *surface,
PanelOrientation orientation,