From b95a7dfc88202e7fe7d224d299c52f44f78b732a Mon Sep 17 00:00:00 2001 From: krypt-n Date: Mon, 30 Mar 2015 18:53:53 +0200 Subject: [PATCH] Makes -o work with bitmap fonts --- lemonbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemonbar.c b/lemonbar.c index 87858df..76e74c0 100644 --- a/lemonbar.c +++ b/lemonbar.c @@ -283,7 +283,7 @@ draw_char (monitor_t *mon, font_t *cur_font, int x, int align, uint16_t ch) // The coordinates here are those of the baseline xcb_poly_text_16_simple(c, mon->pixmap, gc[GC_DRAW], - x, bh / 2 + cur_font->height / 2 - cur_font->descent, + x, y, 1, &ch); }