From 15745abf0cb4948fcc750a9e78139d3c02e1c1f0 Mon Sep 17 00:00:00 2001 From: wil Date: Sat, 31 Dec 2016 18:41:13 +0100 Subject: [PATCH] [fix] cycle auto layouts backwards --- sway/commands/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/layout.c b/sway/commands/layout.c index 5426186ec..d908b95c5 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",