sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 1be75fe7403fd64e084008b0ed677fa4df32ed5b
parent 744724b3cb28c2ee9d265dcbf78b1cbf2b2e3fef
Author: Ian Fan <ianfan0@gmail.com>
Date:   Sat, 18 Aug 2018 18:10:41 +0100

Fix double iterating in container_for_each_child

Diffstat:
Msway/tree/container.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/tree/container.c b/sway/tree/container.c @@ -737,10 +737,10 @@ void container_for_each_child(struct sway_container *container, container->type == C_VIEW, "Expected a container or view")) { return; } - f(container, data); if (container->children) { for (int i = 0; i < container->children->length; ++i) { struct sway_container *child = container->children->items[i]; + f(child, data); container_for_each_child(child, f, data); } }