]> git.sur5r.net Git - i3/i3/blobdiff - src/ipc.c
Allow changing the layout of workspaces by storing it (Thanks mhcerri)
[i3/i3] / src / ipc.c
index 1c6de798803bf2f0b729558aef819f523448077e..7dfbc8713c19c9e44295441f880bf21350f7f504 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -231,6 +231,23 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
             break;
     }
 
+    ystr("workspace_layout");
+    switch (con->workspace_layout) {
+        case L_DEFAULT:
+            ystr("default");
+            break;
+        case L_STACKED:
+            ystr("stacked");
+            break;
+        case L_TABBED:
+            ystr("tabbed");
+            break;
+        default:
+            DLOG("About to dump workspace_layout=%d (none of default/stacked/tabbed), this is a bug.\n", con->workspace_layout);
+            assert(false);
+            break;
+    }
+
     ystr("last_split_layout");
     switch (con->layout) {
         case L_SPLITV: