diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-07-10 15:16:17 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-10 15:29:38 -0400 |
commit | 5ffcea4c28103ecac3d4970412e8b44dbccfcb22 (patch) | |
tree | d7266d830b25e67c337f21768a92a868872a3851 /sway/commands/new_window.c | |
parent | 6096d31eed4f066b6e2bc51122f5a1b47afd93f7 (diff) |
cmd_layout: toggle split for tabbed/stack default
This fixes the logic of split for layout toggle when the default
layout is L_TABBED or L_STACKED. When the default layout is L_TABBED
or L_STACKED, the container/workspace may not have a prev_split_layout.
This was causing L_NONE to be returned by get_layout_toggle, which was
being handled as a syntax error. This adds logic to try
config->default_orientation when prev_split_layout is L_NONE. If that
is also L_NONE, then L_VERT is used when the output is taller than
wide, otherwise, L_HORIZ is used.
Diffstat (limited to 'sway/commands/new_window.c')
0 files changed, 0 insertions, 0 deletions