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

@ -57,8 +57,6 @@ static void _close(struct view *view)
static bool want_ssd(struct view *view)
{
if (view->xwayland_surface->override_redirect)
return false;
if (view->xwayland_surface->decorations !=
WLR_XWAYLAND_SURFACE_DECORATIONS_ALL)
return false;
@ -89,7 +87,7 @@ static void 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 xwl_view_impl = {