diff --git a/src/bar_manager.c b/src/bar_manager.c index 7d1117b..c1fe5ff 100644 --- a/src/bar_manager.c +++ b/src/bar_manager.c @@ -295,7 +295,9 @@ uint32_t bar_manager_length_for_bar_side(struct bar_manager* bar_manager, struct uint32_t total_length = 0; for (int i = 0; i < bar_manager->bar_item_count; i++) { struct bar_item* bar_item = bar_manager->bar_items[i]; - if (bar_item->position == side && bar_draws_item(bar, bar_item)) { + if (bar_item->position == side + && bar_item->type != BAR_COMPONENT_GROUP + && bar_draws_item(bar, bar_item) ) { int item_length = (bar_manager->position == POSITION_LEFT || bar_manager->position == POSITION_RIGHT) ? bar_item_get_height(bar_item)