From: Ingo Bürk Date: Wed, 24 Dec 2014 20:45:12 +0000 (-0500) Subject: Inset the urgent background of a status block for consistency with workspace buttons. X-Git-Tag: 4.9~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=13850a55b0145ba646a7dda4f2155905571b9e10;p=i3%2Fi3 Inset the urgent background of a status block for consistency with workspace buttons. fixes #1423 --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 30dd837d..179f8274 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -191,7 +191,7 @@ void refresh_statusline(void) { /* The urgent background “overshoots” by 2 px so that the text that * is printed onto it will not be look so cut off. */ - xcb_rectangle_t bg_rect = { x - logical_px(2), 0, block->width + logical_px(4), bar_height }; + xcb_rectangle_t bg_rect = { x - logical_px(2), logical_px(1), block->width + logical_px(4), bar_height - logical_px(2) }; xcb_poly_fill_rectangle(xcb_connection, statusline_pm, statusline_ctx, 1, &bg_rect); } else { fg_color = (block->color ? get_colorpixel(block->color) : colors.bar_fg);