diff options
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++; } |
