diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 340e2a705..dfd440d3a 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -1593,8 +1593,9 @@ handle_external_grab (MetaDisplay *display, guint -meta_display_grab_accelerator (MetaDisplay *display, - const char *accelerator) +meta_display_grab_accelerator (MetaDisplay *display, + const char *accelerator, + MetaKeyBindingFlags flags) { MetaKeyBindingManager *keys = &display->key_binding_manager; MetaKeyBinding *binding; @@ -1636,6 +1637,7 @@ meta_display_grab_accelerator (MetaDisplay *display, binding->handler = HANDLER ("external-grab"); binding->combo = combo; binding->resolved_combo = resolved_combo; + binding->flags = flags; g_hash_table_add (keys->key_bindings, binding); index_binding (keys, binding); diff --git a/src/meta/display.h b/src/meta/display.h index bb4831fba..d58150f26 100644 --- a/src/meta/display.h +++ b/src/meta/display.h @@ -157,8 +157,9 @@ gboolean meta_display_remove_keybinding (MetaDisplay *display, const char *name); META_EXPORT -guint meta_display_grab_accelerator (MetaDisplay *display, - const char *accelerator); +guint meta_display_grab_accelerator (MetaDisplay *display, + const char *accelerator, + MetaKeyBindingFlags flags); META_EXPORT gboolean meta_display_ungrab_accelerator (MetaDisplay *display,