From c6dc8e969c84b1980dcebd5dc3a59d112fa61c53 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 12 Jul 2024 23:08:30 +0200 Subject: Start parsing blocks --- src/layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout.c') diff --git a/src/layout.c b/src/layout.c index ce6b281..0b0f826 100644 --- a/src/layout.c +++ b/src/layout.c @@ -24,10 +24,10 @@ void layout_init(layout_t *layout, block_t *block, layout_info_t info) layout->children = calloc(block->group.n_children, sizeof(layout_t)); for (int i = 0; i < block->group.n_children; i++) { - if (block->group.children[i].hidden) + if (block->group.children[i]->hidden) continue; - layout_init(&layout->children[layout->n_children], &block->group.children[i], info); + layout_init(&layout->children[layout->n_children], block->group.children[i], info); info.x_offset += layout->children[layout->n_children].width + block->group.spacing; layout->n_children++; } -- cgit v1.2.3