summaryrefslogtreecommitdiffstats
path: root/sway/commands/layout.c
diff options
context:
space:
mode:
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 44ce2970..ef3ec1cb 100644
--- a/sway/commands/layout.c
+++ b/sway/commands/layout.c
@@ -29,7 +29,7 @@ static enum sway_container_layout get_layout_toggle(int argc, char **argv,
29 enum sway_container_layout layout, 29 enum sway_container_layout layout,
30 enum sway_container_layout prev_split_layout) { 30 enum sway_container_layout prev_split_layout) {
31 // "layout toggle" 31 // "layout toggle"
32 if (argc == 0) { 32 if (argc == 1) {
33 return layout == L_HORIZ ? L_VERT : L_HORIZ; 33 return layout == L_HORIZ ? L_VERT : L_HORIZ;
34 } 34 }
35 35