mirror of
https://github.com/swaywm/sway.git
synced 2026-04-30 06:46:24 -04:00
Fix swaybar block background fill logic
When a block is padded to uphold `min_width`, the background colour is now applied to the whole block rather than just the original width before padding. This brings the behaviour in-line with i3bar.
This commit is contained in:
parent
79a7a2c938
commit
ea215b551d
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ static void render_block(struct window *window, struct config *config, struct st
|
|||
// render background
|
||||
if (block->background != 0x0) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue