i3 - improved tiling WM


Inset the urgent background of a status block for consistency with workspace buttons. fixes #1423

Patch status: merged

Patch by Ingo Bürk

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

b/i3bar/src/xcb.c

14
@@ -191,7 +191,7 @@ void refresh_statusline(void) {
15
 
16
             /* The urgent background “overshoots” by 2 px so that the text that
17
              * is printed onto it will not be look so cut off. */
18
-            xcb_rectangle_t bg_rect = { x - logical_px(2), 0, block->width + logical_px(4), bar_height };
19
+            xcb_rectangle_t bg_rect = { x - logical_px(2), logical_px(1), block->width + logical_px(4), bar_height - logical_px(2) };
20
             xcb_poly_fill_rectangle(xcb_connection, statusline_pm, statusline_ctx, 1, &bg_rect);
21
         } else {
22
             fg_color = (block->color ? get_colorpixel(block->color) : colors.bar_fg);