diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-11-06 09:03:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-06 09:03:59 -0700 |
commit | 5c042c55ce83cf21a5d3e6a85357c778651b28d6 (patch) | |
tree | 282c856cc109727c18616e1357703495295f5ad6 | |
parent | Merge pull request #965 from thejan2009/swaybar-colours (diff) | |
parent | change default layout toggle to L_HORIZ (diff) | |
download | sway-5c042c55ce83cf21a5d3e6a85357c778651b28d6.tar.gz sway-5c042c55ce83cf21a5d3e6a85357c778651b28d6.tar.zst sway-5c042c55ce83cf21a5d3e6a85357c778651b28d6.zip |
Merge pull request #966 from thejan2009/layout-toggle
Change layout toggle to default on horizontal split
-rw-r--r-- | sway/commands/layout.c | 6 |
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) { | |||
49 | } else if (strcasecmp(argv[0], "splitv") == 0) { | 49 | } else if (strcasecmp(argv[0], "splitv") == 0) { |
50 | parent->layout = L_VERT; | 50 | parent->layout = L_VERT; |
51 | } else if (strcasecmp(argv[0], "toggle") == 0 && argc == 2 && strcasecmp(argv[1], "split") == 0) { | 51 | } else if (strcasecmp(argv[0], "toggle") == 0 && argc == 2 && strcasecmp(argv[1], "split") == 0) { |
52 | if (parent->layout == L_VERT) { | 52 | if (parent->layout == L_HORIZ) { |
53 | parent->layout = L_HORIZ; | ||
54 | } else { | ||
55 | parent->layout = L_VERT; | 53 | parent->layout = L_VERT; |
54 | } else { | ||
55 | parent->layout = L_HORIZ; | ||
56 | } | 56 | } |
57 | } | 57 | } |
58 | } | 58 | } |