From ab19ac4da4490363535be79404900a9c8044987d Mon Sep 17 00:00:00 2001 From: William Wold Date: Sat, 26 Jan 2019 04:56:26 -0500 Subject: xstuff: add is_using_x11 () --- mate-panel/xstuff.c | 5 +++++ mate-panel/xstuff.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'mate-panel') 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, -- cgit v1.2.1