Damage output when a fullscreen view unmaps

Also moved the arranging into view_unmap to avoid excessive code
duplication.
This commit is contained in:
Ryan Dwyer 2018-06-26 13:15:45 +10:00
parent beacd4d9f9
commit 7a922c65aa
5 changed files with 15 additions and 17 deletions

View file

@ -196,8 +196,7 @@ static void handle_unmap(struct wl_listener *listener, void *data) {
return;
}
struct sway_container *parent = view_unmap(view);
arrange_and_commit(parent);
view_unmap(view);
wl_list_remove(&xdg_shell_v6_view->commit.link);
wl_list_remove(&xdg_shell_v6_view->new_popup.link);