Merge pull request #2571 from ammgws/0.15

Fix swaybar block background fill logic
This commit is contained in:
Drew DeVault 2018-09-04 14:49:19 -04:00 committed by GitHub
commit 6add71f685
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ static void render_block(struct window *window, struct config *config, struct st
// render background // render background
if (block->background != 0x0) { if (block->background != 0x0) {
cairo_set_source_u32(window->cairo, block->background); cairo_set_source_u32(window->cairo, block->background);
cairo_rectangle(window->cairo, pos - 0.5, 1, block_width, (window->height * window->scale) - 2); cairo_rectangle(window->cairo, pos - 0.5, 1, width, (window->height * window->scale) - 2);
cairo_fill(window->cairo); cairo_fill(window->cairo);
} }