aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/new_window.c
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-07-10 15:16:17 -0400
committerDrew DeVault <sir@cmpwn.com>2019-07-10 15:29:38 -0400
commit5ffcea4c28103ecac3d4970412e8b44dbccfcb22 (patch)
treed7266d830b25e67c337f21768a92a868872a3851 /sway/commands/new_window.c
parent6096d31eed4f066b6e2bc51122f5a1b47afd93f7 (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