mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
Remove transaction_add_damage
Instead, damage each container when applying the transaction.
This commit is contained in:
parent
61c1187685
commit
be86d3aba6
7 changed files with 24 additions and 55 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue