aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-28 12:45:42 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-28 12:45:42 +1000
commit7c7d24600b3db2675b691ae6345ef3fefab03dbd (patch)
tree27bdca654ca7336acc9018aeedbf6a46751a85c2 /sway/tree/container.c
parentMerge pull request #2050 from smlx/focus-fix (diff)
downloadsway-7c7d24600b3db2675b691ae6345ef3fefab03dbd.tar.gz
sway-7c7d24600b3db2675b691ae6345ef3fefab03dbd.tar.zst
sway-7c7d24600b3db2675b691ae6345ef3fefab03dbd.zip
Fix ancestor typos
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index a4798c7e..59137d88 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -656,11 +656,11 @@ void container_for_each_descendant_bfs(struct sway_container *con,
656 } 656 }
657} 657}
658 658
659bool container_has_anscestor(struct sway_container *descendant, 659bool container_has_ancestor(struct sway_container *descendant,
660 struct sway_container *anscestor) { 660 struct sway_container *ancestor) {
661 while (descendant->type != C_ROOT) { 661 while (descendant->type != C_ROOT) {
662 descendant = descendant->parent; 662 descendant = descendant->parent;
663 if (descendant == anscestor) { 663 if (descendant == ancestor) {
664 return true; 664 return true;
665 } 665 }
666 } 666 }