diff options
author | emersion <[email protected]> | 2018-05-05 19:43:12 +0100 |
---|---|---|
committer | emersion <[email protected]> | 2018-05-10 23:03:50 +0100 |
commit | bec80f15519f686c64485685289155568c9bfa9e (patch) | |
tree | ce19c596754ac2413bddea4a6cd395882682567f /sway/tree/container.c | |
parent | 98f7ee8f59fb3242b4689f54d30d78a478d89b1b (diff) |
Damage borders when damaging view
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 38db29c2..cc3bde0a 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -547,12 +547,13 @@ bool container_has_child(struct sway_container *con, return container_find(con, find_child_func, child); } -void container_damage_whole(struct sway_container *con) { - struct sway_container *output = con; - if (output->type != C_OUTPUT) { - output = container_parent(output, C_OUTPUT); +void container_damage_whole(struct sway_container *container) { + for (int i = 0; i < root_container.children->length; ++i) { + struct sway_container *cont = root_container.children->items[i]; + if (cont->type == C_OUTPUT) { + output_damage_whole_container(cont->sway_output, container); + } } - output_damage_whole_container(output->sway_output, con); } static void update_title_texture(struct sway_container *con, |