diff --git a/unlock_indicator.c b/unlock_indicator.c index 706d270..73bf7da 100644 --- a/unlock_indicator.c +++ b/unlock_indicator.c @@ -303,7 +303,7 @@ static void draw_text(cairo_t *ctx, text_t text) { break; case 0: default: - x = text.x - ((extents.width / 2) + (extents.x_bearing / 2)); + x = text.x - extents.x_advance / 2; break; }