From cb43ae94fbf1d3386fec565fce38639875f65322 Mon Sep 17 00:00:00 2001 From: ne_mene Date: Tue, 3 Mar 2026 08:26:16 +0100 Subject: fixed rectangle width (gap in mind) --- src/tsar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tsar.c') diff --git a/src/tsar.c b/src/tsar.c index cfe5c13..8cc74c7 100644 --- a/src/tsar.c +++ b/src/tsar.c @@ -120,9 +120,9 @@ void draw_text( ); size_t width = font->max_advance_width * utf8_strlen(comp->data); - width += comp->margin_left + comp->margin_right; + width += comp->margin_left + comp->margin_right + comp_gap; - XftDrawRect(xft_draw, comp->bg, x, y, width, bar_height); + XftDrawRect(xft_draw, comp->bg, x - comp_gap/2, y, width, bar_height); x += comp->margin_left; -- cgit v1.3-2-g0d8e