mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
[fix] move next/prev behavior for vert/horiz layout
This commit is contained in:
parent
0ff9fe9a7a
commit
2b0e3c212a
|
@ -283,6 +283,7 @@ void move_container(swayc_t *container, enum movement_direction dir) {
|
||||||
sway_log(L_DEBUG, "container:%p, parent:%p, child %p,",
|
sway_log(L_DEBUG, "container:%p, parent:%p, child %p,",
|
||||||
container,parent,child);
|
container,parent,child);
|
||||||
if (parent->layout == layout
|
if (parent->layout == layout
|
||||||
|
|| layout == L_NONE /* accept any layout for next/prev direction */
|
||||||
|| (parent->layout == L_TABBED && layout == L_HORIZ)
|
|| (parent->layout == L_TABBED && layout == L_HORIZ)
|
||||||
|| (parent->layout == L_STACKED && layout == L_VERT)
|
|| (parent->layout == L_STACKED && layout == L_VERT)
|
||||||
|| is_auto_layout(parent->layout)) {
|
|| is_auto_layout(parent->layout)) {
|
||||||
|
|
Loading…
Reference in a new issue