i3 - improved tiling WM


i3bar: fix font displaying

Patch status: needinfo

Patch by Simon Elsbrock

Long description:

Previously, fonts could be cut off in some cases. Increase the drawing
area by 2px so this does not happen anymore.

fixes #992

To apply this patch, use:
curl http://cr.i3wm.org/patch/118/raw.patch | git am

b/i3bar/src/xcb.c

17
@@ -1604,7 +1604,7 @@ void draw_bars(bool unhide) {
18
                           outputs_walk->bargc,
19
                           MAX(0, (int16_t)(statusline_width - outputs_walk->rect.w + 4)), 0,
20
                           MAX(0, (int16_t)(outputs_walk->rect.w - statusline_width - traypx - 4)), 3,
21
-                          MIN(outputs_walk->rect.w - traypx - 4, statusline_width), font.height);
22
+                          MIN(outputs_walk->rect.w - traypx - 4, statusline_width), font.height + 2);
23
         }
24
 
25
         if (config.disable_ws) {