]> git.sur5r.net Git - i3/i3/commitdiff
Use font_ascent instead of font_height, it's more elegant
authorAxel Wagner <mail@merovius.de>
Fri, 17 Sep 2010 03:29:01 +0000 (05:29 +0200)
committerAxel Wagner <mail@merovius.de>
Fri, 17 Sep 2010 03:29:01 +0000 (05:29 +0200)
i3bar/src/xcb.c

index cf1c89059f407b79c8f6e37036121b7870091c31..4e1160503aee84c442fc5aef64a16c53d0b05467 100644 (file)
@@ -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;
         }