diff options
author | wil <william.barsse@gmail.com> | 2016-12-22 21:18:15 +0100 |
---|---|---|
committer | wil <william.barsse@gmail.com> | 2016-12-29 20:31:30 +0100 |
commit | 2b0e3c212a6c269b68879ba6c2d84ebedd5938e1 (patch) | |
tree | 7853adfef0072c3294c8cef78172953044adfd55 | |
parent | introduce next/prev as a direction for focus/move commands. (diff) | |
download | sway-2b0e3c212a6c269b68879ba6c2d84ebedd5938e1.tar.gz sway-2b0e3c212a6c269b68879ba6c2d84ebedd5938e1.tar.zst sway-2b0e3c212a6c269b68879ba6c2d84ebedd5938e1.zip |
[fix] move next/prev behavior for vert/horiz layout
-rw-r--r-- | sway/layout.c | 1 |
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) { | |||
283 | sway_log(L_DEBUG, "container:%p, parent:%p, child %p,", | 283 | sway_log(L_DEBUG, "container:%p, parent:%p, child %p,", |
284 | container,parent,child); | 284 | container,parent,child); |
285 | if (parent->layout == layout | 285 | if (parent->layout == layout |
286 | || layout == L_NONE /* accept any layout for next/prev direction */ | ||
286 | || (parent->layout == L_TABBED && layout == L_HORIZ) | 287 | || (parent->layout == L_TABBED && layout == L_HORIZ) |
287 | || (parent->layout == L_STACKED && layout == L_VERT) | 288 | || (parent->layout == L_STACKED && layout == L_VERT) |
288 | || is_auto_layout(parent->layout)) { | 289 | || is_auto_layout(parent->layout)) { |