aboutsummaryrefslogtreecommitdiff
path: root/src/tsar.c
diff options
context:
space:
mode:
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;