desktop: rename desktop_cycle_view()

This commit is contained in:
Johan Malm 2020-10-31 14:46:33 +00:00
parent 5f9c5a9d01
commit 5d6143449f
5 changed files with 9 additions and 11 deletions

View file

@ -130,10 +130,11 @@ first_view(struct server *server)
}
struct view *
desktop_next_view(struct server *server, struct view *current)
desktop_cycle_view(struct server *server, struct view *current)
{
if (!has_focusable_view(&server->views))
if (!has_focusable_view(&server->views)) {
return NULL;
}
struct view *view = current ? current : first_view(server);