aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/layout.c
diff options
context:
space:
mode:
authorLibravatar wil <william.barsse@gmail.com>2016-12-31 18:41:13 +0100
committerLibravatar wil <william.barsse@gmail.com>2016-12-31 18:41:13 +0100
commit15745abf0cb4948fcc750a9e78139d3c02e1c1f0 (patch)
tree453ecbb4c57808f1695a33c268f85092b55d0c07 /sway/commands/layout.c
parentAdded a word in the Readme about the purpose of the fork. (diff)
downloadsway-15745abf0cb4948fcc750a9e78139d3c02e1c1f0.tar.gz
sway-15745abf0cb4948fcc750a9e78139d3c02e1c1f0.tar.zst
sway-15745abf0cb4948fcc750a9e78139d3c02e1c1f0.zip
[fix] cycle auto layouts backwards
Diffstat (limited to 'sway/commands/layout.c')
-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) {
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",