From 60bab3db28326206fb7c4725c64dc99c755f0e92 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Fri, 17 Sep 2010 05:29:01 +0200 Subject: [PATCH] Use font_ascent instead of font_height, it's more elegant --- i3bar/src/xcb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index cf1c8905..4e116050 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -563,6 +563,7 @@ void clean_xcb() { FREE(xcb_chk); FREE(xcb_prep); FREE(xcb_io); + FREE(font_info); } /* @@ -809,7 +810,7 @@ void draw_bars() { ws_walk->name_glyphs, outputs_walk->buffer, outputs_walk->bargc, - i + 5, font_height + 1, + i + 5, font_info->font_ascent + 2, ws_walk->ucs2_name); i += 10 + ws_walk->name_width; } -- 2.39.5