desktop: refactor desktop_focus_topmost_mapped_view()

Rename from desktop_focus_next_mapped_view() to
desktop_focus_topmost_mapped_view() and only take struct server as
argument.
This commit is contained in:
Johan Malm 2020-10-31 14:32:31 +00:00
parent 11ce73f2d6
commit 5f9c5a9d01
4 changed files with 12 additions and 12 deletions

View file

@ -120,7 +120,7 @@ unmap(struct view *view)
{
view->mapped = false;
wl_list_remove(&view->commit.link);
desktop_focus_next_mapped_view(view);
desktop_focus_topmost_mapped_view(view->server);
}
static const struct view_impl xwl_view_impl = {