From: Michael Stapelberg Date: Mon, 15 Nov 2010 12:55:10 +0000 (+0100) Subject: When in tabbed mode, nail the orientation to horizontal X-Git-Tag: tree-pr1~89 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c0c7d042648dd4a7e52398742e0e09cba84ebbf2;p=i3%2Fi3 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). --- diff --git a/src/con.c b/src/con.c index 2487dd83..4839526c 100644 --- a/src/con.c +++ b/src/con.c @@ -408,6 +408,9 @@ int con_orientation(Con *con) { if (con->layout == L_STACKED) return VERT; + if (con->layout == L_TABBED) + return HORIZ; + return con->orientation; }