aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-05-05 19:43:12 +0100
committerLibravatar emersion <contact@emersion.fr>2018-05-10 23:03:50 +0100
commitbec80f15519f686c64485685289155568c9bfa9e (patch)
treece19c596754ac2413bddea4a6cd395882682567f /sway/tree/container.c
parentRender borders with damage (diff)
downloadsway-bec80f15519f686c64485685289155568c9bfa9e.tar.gz
sway-bec80f15519f686c64485685289155568c9bfa9e.tar.zst
sway-bec80f15519f686c64485685289155568c9bfa9e.zip
Damage borders when damaging view
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c11
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,
547 return container_find(con, find_child_func, child); 547 return container_find(con, find_child_func, child);
548} 548}
549 549
550void container_damage_whole(struct sway_container *con) { 550void container_damage_whole(struct sway_container *container) {
551 struct sway_container *output = con; 551 for (int i = 0; i < root_container.children->length; ++i) {
552 if (output->type != C_OUTPUT) { 552 struct sway_container *cont = root_container.children->items[i];
553 output = container_parent(output, C_OUTPUT); 553 if (cont->type == C_OUTPUT) {
554 output_damage_whole_container(cont->sway_output, container);
555 }
554 } 556 }
555 output_damage_whole_container(output->sway_output, con);
556} 557}
557 558
558static void update_title_texture(struct sway_container *con, 559static void update_title_texture(struct sway_container *con,