]> git.sur5r.net Git - i3/i3/commitdiff
Create a new split container when switching a workspace container to split layout
authorDan Elkouby <streetwalkermc@gmail.com>
Sun, 30 Jul 2017 15:49:42 +0000 (18:49 +0300)
committerDan Elkouby <streetwalkermc@gmail.com>
Sat, 14 Oct 2017 09:26:47 +0000 (12:26 +0300)
The behavior before 52ce8c8 was to do it regardless of what layout we're
switching to.

Fixes #2846

src/con.c

index b6b0da2c6f48318b283e3a94479f172797317065..88d1e7448ba983994da7701ae80a0b8f283e4c5a 100644 (file)
--- 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);