commit 2b0e3c212a6c269b68879ba6c2d84ebedd5938e1
parent 0ff9fe9a7a18a5130b7c5e979ba980409f91b5f1
Author: wil <william.barsse@gmail.com>
Date: Thu, 22 Dec 2016 21:18:15 +0100
[fix] move next/prev behavior for vert/horiz layout
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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)) {