summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-12-31 18:41:13 +0100
committerFurkan Sahin <furkan-dev@proton.me>2016-12-31 18:41:13 +0100
commit049de6fe2851bb03408941df179c0a8ed7d6f296 (patch)
tree453ecbb4c57808f1695a33c268f85092b55d0c07
parent46baa5d4395e7e21509ed98731dbd63280056979 (diff)
[fix] cycle auto layouts backwards
-rw-r--r--sway/commands/layout.c2
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) {
if (is_auto_layout(parent->layout) && parent->layout > L_AUTO_FIRST) {
layout = parent->layout - 1;
} else {
- layout = L_AUTO_FIRST;
+ layout = L_AUTO_LAST;
}
} else {
return cmd_results_new(CMD_FAILURE, "layout auto",