mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
meta_keybindings_switch_window()
Public function to switch to the next window in Alt+Tab like fashion.
This commit is contained in:
parent
7d3a05f2d1
commit
2338611046
@ -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