mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
Fix ancestor typos
This commit is contained in:
parent
b2c0ba5b18
commit
7c7d24600b
5 changed files with 12 additions and 12 deletions
|
|
@ -60,8 +60,8 @@ struct cmd_results *cmd_swap(int argc, char **argv) {
|
|||
} else if (current->type < C_CONTAINER || other->type < C_CONTAINER) {
|
||||
error = cmd_results_new(CMD_FAILURE, "swap",
|
||||
"Can only swap with containers and views");
|
||||
} else if (container_has_anscestor(current, other)
|
||||
|| container_has_anscestor(other, current)) {
|
||||
} else if (container_has_ancestor(current, other)
|
||||
|| container_has_ancestor(other, current)) {
|
||||
error = cmd_results_new(CMD_FAILURE, "swap",
|
||||
"Cannot swap ancestor and descendant");
|
||||
} else if (current->layout == L_FLOATING || other->layout == L_FLOATING) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue