fix font display height in i3bar
Increase the drawing area height, in order to prevent the font from being cut off. fixes #992
This commit is contained in:
parent
a9aad872ee
commit
90bfbac107
|
@ -165,7 +165,7 @@ void refresh_statusline(void) {
|
||||||
realloc_sl_buffer();
|
realloc_sl_buffer();
|
||||||
|
|
||||||
/* Clear the statusline pixmap. */
|
/* 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 + 2 };
|
||||||
xcb_poly_fill_rectangle(xcb_connection, statusline_pm, statusline_clear, 1, &rect);
|
xcb_poly_fill_rectangle(xcb_connection, statusline_pm, statusline_clear, 1, &rect);
|
||||||
|
|
||||||
/* Draw the text of each block. */
|
/* Draw the text of each block. */
|
||||||
|
@ -1610,7 +1610,7 @@ void draw_bars(bool unhide) {
|
||||||
outputs_walk->bargc,
|
outputs_walk->bargc,
|
||||||
MAX(0, (int16_t)(statusline_width - outputs_walk->rect.w + 4)), 0,
|
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)), 3,
|
||||||
MIN(outputs_walk->rect.w - traypx - 4, statusline_width), font.height);
|
MIN(outputs_walk->rect.w - traypx - 4, statusline_width), font.height + 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.disable_ws) {
|
if (config.disable_ws) {
|
||||||
|
|
Loading…
Reference in New Issue