On Tue, Nov 20, 2012 at 6:30 AM, Michael Stapelberg <michael@xxxxxxxx>wrote:
@@ -130,7 +130,7 @@ void refresh_statusline(void) {
block->width = predict_text_width(block->full_text);
/* If this is not the last block, add some pixels for a
separator. */
if (TAILQ_NEXT(block, blocks) != NULL)
- block->width += 9;
+ block->width += 10;
statusline_width += block->width;
}
@@ -141,7 +141,7 @@ void refresh_statusline(void) {
realloc_sl_buffer();
/* Clear the statusline pixmap. */
- xcb_rectangle_t rect = { 0, 0, root_screen->width_in_pixels,
font.height };
+ xcb_rectangle_t rect = { 0, 0, root_screen->width_in_pixels,
font.height + 4 };
xcb_poly_fill_rectangle(xcb_connection, statusline_pm,
statusline_clear, 1, &rect);
/* Draw the text of each block. */
@@ -1576,7 +1576,7 @@ void draw_bars(bool unhide) {
outputs_walk->buffer,
outputs_walk->bargc,
MAX(0, (int16_t)(statusline_width -
outputs_walk->rect.w + 4)), 0,
- MAX(0, (int16_t)(outputs_walk->rect.w -
statusline_width - traypx - 4)), 3,
+ MAX(0, (int16_t)(outputs_walk->rect.w -
statusline_width - traypx - 4)), 2,
MIN(outputs_walk->rect.w - traypx - 4,
statusline_width), font.height);
}