aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-12-22 21:18:15 +0100
committerFurkan Sahin <furkan-dev@proton.me>2016-12-22 21:18:15 +0100
commit8733823b3c92e7d31a01ba189f0c4d61bde67840 (patch)
tree7853adfef0072c3294c8cef78172953044adfd55
parent0151ef61400b767a02d8fedacd16d4cccbed6230 (diff)
[fix] move next/prev behavior for vert/horiz layout
-rw-r--r--sway/layout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c
index a8ad7ed5..2de6da45 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -283,6 +283,7 @@ void move_container(swayc_t *container, enum movement_direction dir) {
sway_log(L_DEBUG, "container:%p, parent:%p, child %p,",
container,parent,child);
if (parent->layout == layout
+ || layout == L_NONE /* 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)) {