diff options
-rw-r--r-- | mate-panel/panel-bindings.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 } |