+ } else if (strcasecmp(last_key, "workspace_layout") == 0) {
+ char *buf = NULL;
+ sasprintf(&buf, "%.*s", (int)len, val);
+ if (strcasecmp(buf, "default") == 0)
+ json_node->workspace_layout = L_DEFAULT;
+ else if (strcasecmp(buf, "stacked") == 0)
+ json_node->workspace_layout = L_STACKED;
+ else if (strcasecmp(buf, "tabbed") == 0)
+ json_node->workspace_layout = L_TABBED;
+ else LOG("Unhandled \"workspace_layout\": %s\n", buf);
+ free(buf);
+ } else if (strcasecmp(last_key, "last_split_layout") == 0) {
+ char *buf = NULL;
+ sasprintf(&buf, "%.*s", (int)len, val);
+ if (strcasecmp(buf, "splith") == 0)
+ json_node->last_split_layout = L_SPLITH;
+ else if (strcasecmp(buf, "splitv") == 0)
+ json_node->last_split_layout = L_SPLITV;
+ else LOG("Unhandled \"last_splitlayout\": %s\n", buf);
+ free(buf);