aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-07-10 21:25:10 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-07-11 10:46:56 -0400
commitc312a10cc7ace29fde9105204787c9853745a57d (patch)
treeb16a3055aef48a903b1b4d5227c243f64f3a82d1 /sway/tree
parentcmd_layout: toggle split for tabbed/stack default (diff)
downloadsway-c312a10cc7ace29fde9105204787c9853745a57d.tar.gz
sway-c312a10cc7ace29fde9105204787c9853745a57d.tar.zst
sway-c312a10cc7ace29fde9105204787c9853745a57d.zip
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/tree')
0 files changed, 0 insertions, 0 deletions