diff --git a/swaybar/render.c b/swaybar/render.c index c51321f18..d4a4f1e10 100644 --- a/swaybar/render.c +++ b/swaybar/render.c @@ -202,8 +202,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; @@ -368,8 +368,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;