From 9e85956188204eafff6c0c27ece1812bf3d57108 Mon Sep 17 00:00:00 2001 From: William Wold Date: Mon, 11 Feb 2019 16:11:08 -0500 Subject: Wayland support for panel-bindings.c --- mate-panel/panel-bindings.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mate-panel/panel-bindings.c b/mate-panel/panel-bindings.c index 65f0b7e3..96351561 100644 --- a/mate-panel/panel-bindings.c +++ b/mate-panel/panel-bindings.c @@ -34,7 +34,10 @@ #include "panel-schemas.h" #include "panel-profile.h" +#ifdef HAVE_X11 +#include "xstuff.h" #include "panel-xutils.h" +#endif #define DEFAULT_MOUSE_MODIFIER GDK_MOD1_MASK @@ -241,10 +244,17 @@ panel_bindings_set_entries (GtkBindingSet *binding_set) guint panel_bindings_get_mouse_button_modifier_keymask (void) { +#ifdef HAVE_X11 + if (!is_using_x11 ()) + return 0; + g_assert (mouse_button_modifier_keymask != 0); if (!initialised) panel_bindings_initialise (); return panel_get_real_modifier_mask (mouse_button_modifier_keymask); +#else + return 0; +#endif } -- cgit v1.2.1