Fix ancestor typos

This commit is contained in:
Ryan Dwyer 2018-05-28 12:45:42 +10:00
parent b2c0ba5b18
commit 7c7d24600b
5 changed files with 12 additions and 12 deletions

View file

@ -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;
}
}