From c0c7d042648dd4a7e52398742e0e09cba84ebbf2 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 15 Nov 2010 13:55:10 +0100 Subject: [PATCH] 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). --- src/con.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5