mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Fix ancestor typos
This commit is contained in:
parent
b2c0ba5b18
commit
7c7d24600b
5 changed files with 12 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue