From c028f0cb173ebc4c7033c758c7f942adfbc224af Mon Sep 17 00:00:00 2001 From: Dan Elkouby Date: Sun, 30 Jul 2017 18:49:42 +0300 Subject: [PATCH] Create a new split container when switching a workspace container to split layout The behavior before 52ce8c8 was to do it regardless of what layout we're switching to. Fixes #2846 --- src/con.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/con.c b/src/con.c index b6b0da2c..88d1e744 100644 --- a/src/con.c +++ b/src/con.c @@ -1756,7 +1756,7 @@ void con_set_layout(Con *con, layout_t layout) { con->workspace_layout = ws_layout; DLOG("Setting layout to %d\n", layout); con->layout = layout; - } else if (layout == L_STACKED || layout == L_TABBED) { + } else if (layout == L_STACKED || layout == L_TABBED || layout == L_SPLITV || layout == L_SPLITH) { DLOG("Creating new split container\n"); /* 1: create a new split container */ Con *new = con_new(NULL, NULL); -- 2.39.5