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

@ -260,8 +260,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(&xwayland_view->commit.link);
view->surface = NULL;
@ -297,9 +296,7 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
struct sway_view *view = &xwayland_view->view;
if (view->surface) {
struct sway_container *parent = view_unmap(view);
arrange_and_commit(parent);
view_unmap(view);
wl_list_remove(&xwayland_view->commit.link);
view->surface = NULL;
}