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/arrange.c | |
parent | 61c118768564eec07ac16494d90f567e75ea60cf (diff) |
Remove transaction_add_damage
Instead, damage each container when applying the transaction.
Diffstat (limited to 'sway/tree/arrange.c')
-rw-r--r-- | sway/tree/arrange.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c index cb3f8ba2..582b2891 100644 --- a/sway/tree/arrange.c +++ b/sway/tree/arrange.c @@ -304,15 +304,6 @@ void arrange_windows(struct sway_container *container, case C_TYPES: break; } - // Add damage for whatever container arrange_windows() was called with, - // unless it was called with the special floating container, in which case - // we'll damage the entire output. - if (container->type == C_CONTAINER && container->layout == L_FLOATING) { - struct sway_container *output = container_parent(container, C_OUTPUT); - transaction_add_damage(transaction, container_get_box(output)); - } else { - transaction_add_damage(transaction, container_get_box(container)); - } add_deleted_containers(transaction); } |