aboutsummaryrefslogtreecommitdiff
path: root/src/tsar.c
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-03-03 08:26:16 +0100
committerne_mene <[email protected]>2026-03-03 08:26:16 +0100
commitcb43ae94fbf1d3386fec565fce38639875f65322 (patch)
tree69154fa86ec4cfb3f77c543455dea0b4bd52078c /src/tsar.c
parentdfb2acb972e15ce319f90cb7df0d85f8105ec699 (diff)
fixed rectangle width (gap in mind)
Diffstat (limited to 'src/tsar.c')
-rw-r--r--src/tsar.c4
1 files changed, 2 insertions, 2 deletions
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;