i3 - improved tiling WM


i3bar: Fix "off by one"-error when rendering workspace buttons in i3bar

Patch status: rejected

Patch by Øystein Dale

Long description:

The height of the buttons were depending on the font height rather than the
height of the bar itself, leaving room for a 1px gap between the border
of the button and the bottom edge of the bar.

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

b/i3bar/src/xcb.c

17
@@ -1814,7 +1814,7 @@ void draw_bars(bool unhide) {
18
                 xcb_rectangle_t rect_border = {i,
19
                                                logical_px(1),
20
                                                ws_walk->name_width + logical_px(10),
21
-                                               font.height + logical_px(4)};
22
+                                               bar_height};
23
                 xcb_poly_fill_rectangle(xcb_connection,
24
                                         outputs_walk->buffer,
25
                                         outputs_walk->bargc,
26
@@ -1828,7 +1828,7 @@ void draw_bars(bool unhide) {
27
                 xcb_rectangle_t rect = {i + logical_px(1),
28
                                         2 * logical_px(1),
29
                                         ws_walk->name_width + logical_px(8),
30
-                                        font.height + logical_px(2)};
31
+                                        bar_height - logical_px(3)};
32
                 xcb_poly_fill_rectangle(xcb_connection,
33
                                         outputs_walk->buffer,
34
                                         outputs_walk->bargc,