summaryrefslogtreecommitdiff
path: root/mate-panel/xstuff.c
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 /mate-panel/xstuff.c
parente3846eb096a7ded4566775bcca0a3e3ceb22f762 (diff)
downloadmate-panel-ab19ac4da4490363535be79404900a9c8044987d.tar.bz2
mate-panel-ab19ac4da4490363535be79404900a9c8044987d.tar.xz
xstuff: add is_using_x11 ()
Diffstat (limited to 'mate-panel/xstuff.c')
-rw-r--r--mate-panel/xstuff.c5
1 files changed, 5 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;