diff options
-rw-r--r-- | sway/commands/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c index 5426186e..d908b95c 100644 --- a/sway/commands/layout.c +++ b/sway/commands/layout.c | |||
@@ -110,7 +110,7 @@ struct cmd_results *cmd_layout(int argc, char **argv) { | |||
110 | if (is_auto_layout(parent->layout) && parent->layout > L_AUTO_FIRST) { | 110 | if (is_auto_layout(parent->layout) && parent->layout > L_AUTO_FIRST) { |
111 | layout = parent->layout - 1; | 111 | layout = parent->layout - 1; |
112 | } else { | 112 | } else { |
113 | layout = L_AUTO_FIRST; | 113 | layout = L_AUTO_LAST; |
114 | } | 114 | } |
115 | } else { | 115 | } else { |
116 | return cmd_results_new(CMD_FAILURE, "layout auto", | 116 | return cmd_results_new(CMD_FAILURE, "layout auto", |