Merge pull request #2574 from ammgws/block-bg-fix

Fix swaybar block background fill logic
This commit is contained in:
emersion 2018-09-05 12:11:27 +02:00 committed by GitHub
commit aa2bf98e04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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