mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
Support openbox style "cycle window"
We still use alt-F2, but it now feels like alt-tab does.
This commit is contained in:
parent
0380fd18f3
commit
a2c48c7aab
5 changed files with 70 additions and 81 deletions
7
xwl.c
7
xwl.c
|
|
@ -49,7 +49,12 @@ void xwl_surface_unmap(struct wl_listener *listener, void *data)
|
|||
{
|
||||
struct view *view = wl_container_of(listener, view, unmap);
|
||||
view->mapped = false;
|
||||
view_focus_next_toplevel(view);
|
||||
/*
|
||||
* Note that if 'view' is not a toplevel view, the 'front' toplevel view
|
||||
* will be focussed on; but if 'view' is a toplevel view, the 'next'
|
||||
* will be focussed on.
|
||||
*/
|
||||
view_focus(next_toplevel(view));
|
||||
}
|
||||
|
||||
void xwl_surface_destroy(struct wl_listener *listener, void *data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue