mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 09:46:08 -05:00
meta_keybindings_switch_window()
Public function to switch to the next window in Alt+Tab like fashion.
This commit is contained in:
parent
986bdac451
commit
b47459af58
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user