From 7c7d24600b3db2675b691ae6345ef3fefab03dbd Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Mon, 28 May 2018 12:45:42 +1000 Subject: Fix ancestor typos --- sway/commands/swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sway/commands') diff --git a/sway/commands/swap.c b/sway/commands/swap.c index e925ad33..e8dfc57f 100644 --- a/sway/commands/swap.c +++ b/sway/commands/swap.c @@ -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) { -- cgit v1.2.3