]> git.sur5r.net Git - i3/i3/blobdiff - src/load_layout.c
allow parsing multiple nodes from a json layout
[i3/i3] / src / load_layout.c
index d31c230a6ed3931b452dcbcab8639daaf8492678..b69f8ac5116b7ed5d7d9d8faf0edcd023618b67a 100644 (file)
@@ -421,6 +421,8 @@ void tree_append_json(const char *filename) {
 #endif
     /* Allowing comments allows for more user-friendly layout files. */
     yajl_config(hand, yajl_allow_comments, true);
+    /* Allow multiple values, i.e. multiple nodes to attach */
+    yajl_config(hand, yajl_allow_multiple_values, true);
     yajl_status stat;
     json_node = focused;
     to_focus = NULL;