meta_keybindings_switch_window()

Public function to switch to the next window in Alt+Tab like fashion.
This commit is contained in:
Tomas Frydrych 2009-01-29 16:26:12 +00:00
parent 986bdac451
commit b47459af58
2 changed files with 20 additions and 0 deletions

View File

@ -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);
}

View File

@ -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