diff options
| author | Federico Angelilli <code@fedang.net> | 2024-07-12 23:08:30 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-07-12 23:08:30 +0200 |
| commit | c6dc8e969c84b1980dcebd5dc3a59d112fa61c53 (patch) | |
| tree | 3ed902af74b7122c5424117b041442a558e35e3c /src/layout.c | |
| parent | aac1310ed0b9983a4a4a29ac469405d70465c278 (diff) | |
Start parsing blocks
Diffstat (limited to 'src/layout.c')
| -rw-r--r-- | src/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
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++; } |
