]> git.sur5r.net Git - i3/i3/blobdiff - src/load_layout.c
Make workspace_layout handle all cons at workspace level, not only the first one...
[i3/i3] / src / load_layout.c
index 6fe0a0869241f654a172d355cbae2920e7f7d1fe..6e311f1f9903f2b1aa8be0240d0db29913fa02d8 100644 (file)
@@ -32,12 +32,12 @@ static int json_start_map(void *ctx) {
             if (last_key && strcasecmp(last_key, "floating_nodes") == 0) {
                 DLOG("New floating_node\n");
                 Con *ws = con_get_workspace(json_node);
-                json_node = con_new(NULL);
+                json_node = con_new(NULL, NULL);
                 json_node->parent = ws;
                 DLOG("Parent is workspace = %p\n", ws);
             } else {
                 Con *parent = json_node;
-                json_node = con_new(NULL);
+                json_node = con_new(NULL, NULL);
                 json_node->parent = parent;
             }
         }