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,13 +71,13 @@ void layout_log(const swayc_t *c, int depth) {
layout_log(c->floating->items[i], depth + 1); layout_log(c->floating->items[i], depth + 1);
} }
} }
} } else if (c->type == C_ROOT && scratchpad->length > 0) {
if (c->type == C_ROOT) {
fprintf(stderr, "ScratchPad\n"); fprintf(stderr, "ScratchPad\n");
for (int i = 0; i < scratchpad->length; ++i) for (i = 0; i < scratchpad->length; ++i) {
container_log(scratchpad->items[i], 0); container_log(scratchpad->items[i], 0);
} }
} }
}
const char *swayc_type_string(enum swayc_types type) { const char *swayc_type_string(enum swayc_types type) {
return type == C_ROOT ? "ROOT" : return type == C_ROOT ? "ROOT" :