diff options
author | 2019-07-10 21:25:10 -0400 | |
---|---|---|
committer | 2019-07-11 10:46:56 -0400 | |
commit | c312a10cc7ace29fde9105204787c9853745a57d (patch) | |
tree | b16a3055aef48a903b1b4d5227c243f64f3a82d1 /.editorconfig | |
parent | cmd_layout: toggle split for tabbed/stack default (diff) | |
download | sway-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 '.editorconfig')
0 files changed, 0 insertions, 0 deletions