When in tabbed mode, nail the orientation to horizontal

This is intuitive for the user as he can use the left/right keys to switch.
Also, we need to nail the orientation because you can be in either vertical or
horizontal mode when you enter the tabbed layout (like with the stacking
layout).
This commit is contained in:
Michael Stapelberg 2010-11-15 13:55:10 +01:00
parent 8048cb2e12
commit c0c7d04264
1 changed files with 3 additions and 0 deletions

View File

@ -408,6 +408,9 @@ int con_orientation(Con *con) {
if (con->layout == L_STACKED) if (con->layout == L_STACKED)
return VERT; return VERT;
if (con->layout == L_TABBED)
return HORIZ;
return con->orientation; return con->orientation;
} }