summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-01-26 04:56:26 -0500
committerlukefromdc <[email protected]>2019-01-29 19:09:05 +0000
commitab19ac4da4490363535be79404900a9c8044987d (patch)
tree1ab440818959f9f190f637ccdbe281f7fb6ce57a
parente3846eb096a7ded4566775bcca0a3e3ceb22f762 (diff)
downloadmate-panel-ab19ac4da4490363535be79404900a9c8044987d.tar.bz2
mate-panel-ab19ac4da4490363535be79404900a9c8044987d.tar.xz
xstuff: add is_using_x11 ()
-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,