Support openbox style "cycle window"

We still use alt-F2, but it now feels like alt-tab does.
This commit is contained in:
Johan Malm 2020-05-18 20:54:25 +01:00
parent 0380fd18f3
commit a2c48c7aab
5 changed files with 70 additions and 81 deletions

7
xwl.c
View file

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