diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-07-10 21:25:10 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-11 10:46:56 -0400 |
commit | c312a10cc7ace29fde9105204787c9853745a57d (patch) | |
tree | b16a3055aef48a903b1b4d5227c243f64f3a82d1 /sway/commands/new_window.c | |
parent | 5ffcea4c28103ecac3d4970412e8b44dbccfcb22 (diff) |
cmd_split: fix toggle split for non-split layouts
Previously, `layout toggle` and `layout toggle split` would set L_VERT
when layout was L_HORIZ, otherwise it would set L_HORIZ. This meant
that when the layout was L_TABBED or L_STACKED, it would always be
L_HORIZ. This extends #4315 (which corrects the handling when multiple
layouts are given) to try prev_split_layout,
config->default_orientation, and then falling back to L_VERT when the
output is taller than wide and L_HORIZ when wider than tall.
Diffstat (limited to 'sway/commands/new_window.c')
0 files changed, 0 insertions, 0 deletions