view: refactor view_next()

This commit is contained in:
Johan Malm 2020-09-07 19:47:11 +01:00
parent b8fd4fed53
commit afaf78aa72
7 changed files with 50 additions and 65 deletions

View file

@ -148,7 +148,7 @@ static void xdg_toplevel_view_unmap(struct view *view)
{
view->mapped = false;
wl_list_remove(&view->commit.link);
view_focus(next_toplevel(view));
view_focus(view_next(view));
}
static const struct view_impl xdg_toplevel_view_impl = {