ipc: always include marks property in TREE reply

This commit is contained in:
Ian Fan
2020-03-07 00:04:05 +00:00
parent cae3b294ad
commit d02cda4241
3 changed files with 12 additions and 15 deletions

View File

@ -410,17 +410,13 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
ystr("urgent");
y(bool, con->urgent);
if (!TAILQ_EMPTY(&(con->marks_head))) {
ystr("marks");
y(array_open);
mark_t *mark;
TAILQ_FOREACH (mark, &(con->marks_head), marks) {
ystr(mark->name);
}
y(array_close);
ystr("marks");
y(array_open);
mark_t *mark;
TAILQ_FOREACH (mark, &(con->marks_head), marks) {
ystr(mark->name);
}
y(array_close);
ystr("focused");
y(bool, (con == focused));