diff --git a/swaybar/render.c b/swaybar/render.c index 45faefa9..827ea345 100644 --- a/swaybar/render.c +++ b/swaybar/render.c @@ -203,8 +203,8 @@ static uint32_t render_status_block(struct render_context *ctx, "%s", block->min_width_str); block->min_width = w; } - if (width < block->min_width) { - width = block->min_width; + if (width < block->min_width * output->scale) { + width = block->min_width * output->scale; } double block_width = width; @@ -369,8 +369,8 @@ static void predict_status_block_pos(cairo_t *cairo, 1, block->markup, "%s", block->min_width_str); block->min_width = w; } - if (width < block->min_width) { - width = block->min_width; + if (width < block->min_width * output->scale) { + width = block->min_width * output->scale; } uint32_t ideal_height = text_height + ws_vertical_padding * 2;