aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-28 09:16:33 +0100
committerGitHub <noreply@github.com>2018-05-28 09:16:33 +0100
commit9d1049ae8d25eb78eb94dcf68aadad5eef6e4be1 (patch)
treec7d20de9d9a46293d7409d624372abf6f796e400 /sway/tree/container.c
parentcc1fc3b4a656a544254a80cf32a48d826e7946b2 (diff)
parent7c7d24600b3db2675b691ae6345ef3fefab03dbd (diff)
Merge pull request #2059 from RyanDwyer/ancestor-typo
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,
}
}
-bool container_has_anscestor(struct sway_container *descendant,
- struct sway_container *anscestor) {
+bool container_has_ancestor(struct sway_container *descendant,
+ struct sway_container *ancestor) {
while (descendant->type != C_ROOT) {
descendant = descendant->parent;
- if (descendant == anscestor) {
+ if (descendant == ancestor) {
return true;
}
}