Fix swaybar block background fill logic

Same as #2571 but for 1.0.
This commit is contained in:
Jason 2018-09-05 18:48:31 +09:00 committed by GitHub
parent 309fcf2300
commit 13fbe5176b
Failed to generate hash of commit

View file

@ -187,7 +187,7 @@ static uint32_t render_status_block(cairo_t *cairo,
if (block->background) {
cairo_set_source_u32(cairo, block->background);
cairo_rectangle(cairo, pos - 0.5 * output->scale,
output->scale, block_width, height);
output->scale, width, height);
cairo_fill(cairo);
}