]> git.sur5r.net Git - i3/i3/commitdiff
Inset the urgent background of a status block for consistency with workspace buttons.
authorIngo Bürk <ingo.buerk@tngtech.com>
Wed, 24 Dec 2014 20:45:12 +0000 (15:45 -0500)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 17 Jan 2015 17:28:14 +0000 (18:28 +0100)
fixes #1423

i3bar/src/xcb.c

index 30dd837d785c484a1d4197bd5a0a247e658581f3..179f8274b9f00871e66904ce8df52e0d7b0bbfb2 100644 (file)
@@ -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);