diff options
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, | |||
547 | return container_find(con, find_child_func, child); | 547 | return container_find(con, find_child_func, child); |
548 | } | 548 | } |
549 | 549 | ||
550 | void container_damage_whole(struct sway_container *con) { | 550 | void 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 | ||
558 | static void update_title_texture(struct sway_container *con, | 559 | static void update_title_texture(struct sway_container *con, |