]> git.sur5r.net Git - i3/i3/blobdiff - src/load_layout.c
Implement sticky windows
[i3/i3] / src / load_layout.c
index b88a49be1f9d5307f998e448a95638f32f59858b..ae957bc62fe937fa519fd08da50be8a290ad45ab 100644 (file)
@@ -71,6 +71,10 @@ static int json_string(void *ctx, const unsigned char *val, unsigned int len) {
         if (strcasecmp(last_key, "name") == 0) {
             json_node->name = scalloc((len+1) * sizeof(char));
             memcpy(json_node->name, val, len);
+        } else if (strcasecmp(last_key, "sticky_group") == 0) {
+            json_node->sticky_group = scalloc((len+1) * sizeof(char));
+            memcpy(json_node->sticky_group, val, len);
+            LOG("sticky_group of this container is %s\n", json_node->sticky_group);
         }
     }
     return 1;