aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD.B <thejan.2009@gmail.com>2016-11-06 08:13:24 +0100
committerD.B <thejan.2009@gmail.com>2016-11-06 08:13:24 +0100
commit05be14ff7cb74e8298b624f090154fe7dc1124ba (patch)
tree282c856cc109727c18616e1357703495295f5ad6
parente9ac0492b7ec55d34d9209f2ff3e08de5c014d65 (diff)
change default layout toggle to L_HORIZ
After issuing 'layout toggle split' command from tabbed/stacked layout, layout should have been horizontally split.
-rw-r--r--sway/commands/layout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c
index e0af30aa..05ab0a18 100644
--- a/sway/commands/layout.c
+++ b/sway/commands/layout.c
@@ -49,10 +49,10 @@ struct cmd_results *cmd_layout(int argc, char **argv) {
} else if (strcasecmp(argv[0], "splitv") == 0) {
parent->layout = L_VERT;
} else if (strcasecmp(argv[0], "toggle") == 0 && argc == 2 && strcasecmp(argv[1], "split") == 0) {
- if (parent->layout == L_VERT) {
- parent->layout = L_HORIZ;
- } else {
+ if (parent->layout == L_HORIZ) {
parent->layout = L_VERT;
+ } else {
+ parent->layout = L_HORIZ;
}
}
}