desktop: focus next 'mapped' view on minimize

This commit is contained in:
Johan Malm 2020-09-18 20:28:48 +01:00
parent b46fa5e006
commit 3c90cb7945
4 changed files with 36 additions and 4 deletions

View file

@ -171,7 +171,7 @@ static void xdg_toplevel_view_unmap(struct view *view)
{
view->mapped = false;
wl_list_remove(&view->commit.link);
desktop_focus_view(desktop_next_view(view->server, view));
desktop_focus_next_mapped_view(view);
}
static const struct view_impl xdg_toplevel_view_impl = {