From: Axel Wagner Date: Fri, 17 Sep 2010 03:29:01 +0000 (+0200) Subject: Use font_ascent instead of font_height, it's more elegant X-Git-Tag: 4.0.1~7^2~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=60bab3db28326206fb7c4725c64dc99c755f0e92;p=i3%2Fi3 Use font_ascent instead of font_height, it's more elegant --- 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; }