From 786f19ed10d1e735c7d4a18273ba890e38cad8ea Mon Sep 17 00:00:00 2001 From: Felix Kratz Date: Mon, 22 Nov 2021 23:56:46 +0100 Subject: [PATCH] fix right bracket offset --- src/bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bar.c b/src/bar.c index 161050e..04a166b 100644 --- a/src/bar.c +++ b/src/bar.c @@ -164,7 +164,7 @@ void bar_redraw(struct bar* bar) { } if (bar_item->group && group_is_first_member(bar_item->group, bar_item)) - group_calculate_bounds(bar_item->group, bar_item->position == POSITION_RIGHT ? (icon_position - group_get_length(bar_item->group) + bar_item_get_length(bar_item)) : icon_position, y); + group_calculate_bounds(bar_item->group, bar_item->position == POSITION_RIGHT ? (icon_position - group_get_length(bar_item->group) + bar_item_get_length(bar_item) + bar_item->icon.padding_left) : icon_position, y); text_calculate_bounds(&bar_item->icon, icon_position, y + bar_item->y_offset); text_calculate_bounds(&bar_item->label, label_position, y + bar_item->y_offset);