diff options
author | William Wold <[email protected]> | 2019-02-11 16:11:08 -0500 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-03-10 15:11:45 +0100 |
commit | 9e85956188204eafff6c0c27ece1812bf3d57108 (patch) | |
tree | 6f914f88ab7b8d58ae626db052c2f02a8f4b8cb6 | |
parent | 9a6369a54a2aa6a9ed73eabe1452ccc8b3eae27b (diff) | |
download | mate-panel-9e85956188204eafff6c0c27ece1812bf3d57108.tar.bz2 mate-panel-9e85956188204eafff6c0c27ece1812bf3d57108.tar.xz |
Wayland support for panel-bindings.c
-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 } |