From: Dan Elkouby Date: Sun, 30 Jul 2017 15:49:42 +0000 (+0300) Subject: Create a new split container when switching a workspace container to split layout X-Git-Tag: 4.15~50^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c028f0cb173ebc4c7033c758c7f942adfbc224af;p=i3%2Fi3 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 --- 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);