diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 932ae3217..fb77031f3 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -3390,3 +3390,16 @@ meta_keybindings_set_custom_handler (const gchar *name, return TRUE; } +void +meta_keybindings_switch_window (MetaDisplay *display, + MetaScreen *screen, + MetaWindow *event_window, + XEvent *event, + MetaKeyBinding *binding) +{ + gint backwards = binding->handler->flags & BINDING_IS_REVERSED; + + do_choose_window (display, screen, event_window, event, binding, + backwards, FALSE); +} + diff --git a/src/include/keybindings.h b/src/include/keybindings.h index b2f2f4f55..25ecdacfb 100644 --- a/src/include/keybindings.h +++ b/src/include/keybindings.h @@ -56,4 +56,11 @@ gboolean meta_keybindings_set_custom_handler (const gchar *name, MetaKeyHandlerFunc handler, gpointer user_data, MetaKeyHandlerDataFreeFunc free_data); + +void meta_keybindings_switch_window (MetaDisplay *display, + MetaScreen *screen, + MetaWindow *event_window, + XEvent *event, + MetaKeyBinding *binding); + #endif