Clean up scratchpad logging

This commit is contained in:
taiyu 2018-03-28 12:48:01 -07:00
parent 52b9a62b31
commit e4e8b66efd

View file

@ -71,11 +71,11 @@ void layout_log(const swayc_t *c, int depth) {
layout_log(c->floating->items[i], depth + 1);
}
}
}
if (c->type == C_ROOT) {
fprintf(stderr,"ScratchPad\n");
for (int i = 0; i < scratchpad->length; ++i)
} else if (c->type == C_ROOT && scratchpad->length > 0) {
fprintf(stderr, "ScratchPad\n");
for (i = 0; i < scratchpad->length; ++i) {
container_log(scratchpad->items[i], 0);
}
}
}