diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-03-19 17:57:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-19 17:57:44 -0400 |
commit | e659db4f73366010ad0017297a594216585510e4 (patch) | |
tree | 7be02709fd7d81d1829810df24578faa73f77804 /sway/layout.c | |
parent | 0fa8b5abfbddbdacfb9330167ae09bd4027f9654 (diff) | |
parent | 924ed6464c25219bc0dd5ed06885cd3692042a20 (diff) |
Merge pull request #1130 from oranenj/fix_move_next_crash
Fix move next crash
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c index 473b74f7..69291daf 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -417,7 +417,7 @@ void move_container(swayc_t *container, enum movement_direction dir, int move_am sway_log(L_DEBUG, "container:%p, parent:%p, child %p,", container,parent,child); if (parent->layout == layout - || (layout == L_NONE && parent->type == C_CONTAINER) /* accept any layout for next/prev direction */ + || (layout == L_NONE && (parent->type == C_CONTAINER || parent->type == C_WORKSPACE)) /* accept any layout for next/prev direction */ || (parent->layout == L_TABBED && layout == L_HORIZ) || (parent->layout == L_STACKED && layout == L_VERT) || is_auto_layout(parent->layout)) { |