diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-27 17:46:03 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-27 17:46:03 +1000 |
commit | be86d3aba602fef7b51fafa8a6e7a39d1e49817f (patch) | |
tree | ba4e3debd236eb39337cd4f59772b2eaf260195f /sway/tree/view.c | |
parent | 61c118768564eec07ac16494d90f567e75ea60cf (diff) |
Remove transaction_add_damage
Instead, damage each container when applying the transaction.
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index a616af03..68d2a029 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -550,11 +550,7 @@ void view_unmap(struct sway_view *view) { ws->sway_workspace->fullscreen = NULL; container_destroy(view->swayc); - struct sway_container *output = ws->parent; - struct sway_transaction *transaction = transaction_create(); - arrange_windows(output, transaction); - transaction_add_damage(transaction, container_get_box(output)); - transaction_commit(transaction); + arrange_and_commit(ws->parent); } else { struct sway_container *parent = container_destroy(view->swayc); arrange_and_commit(parent); |