aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/swap.c')
-rw-r--r--sway/commands/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/swap.c b/sway/commands/swap.c
index 615e6b1d..f881a002 100644
--- a/sway/commands/swap.c
+++ b/sway/commands/swap.c
@@ -72,7 +72,7 @@ struct cmd_results *cmd_swap(int argc, char **argv) {
72 || container_has_ancestor(other, current)) { 72 || container_has_ancestor(other, current)) {
73 error = cmd_results_new(CMD_FAILURE, "swap", 73 error = cmd_results_new(CMD_FAILURE, "swap",
74 "Cannot swap ancestor and descendant"); 74 "Cannot swap ancestor and descendant");
75 } else if (current->layout == L_FLOATING || other->layout == L_FLOATING) { 75 } else if (container_is_floating(current) || container_is_floating(other)) {
76 error = cmd_results_new(CMD_FAILURE, "swap", 76 error = cmd_results_new(CMD_FAILURE, "swap",
77 "Swapping with floating containers is not supported"); 77 "Swapping with floating containers is not supported");
78 } 78 }