diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-12-10 12:25:17 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-12-12 10:23:57 +0100 |
commit | 549d9fe489a6a75ef486c67658b34649f4316873 (patch) | |
tree | 1542d0bf406633aac5b2fb0dcb980a962c897f48 /include/swaybar | |
parent | 8b4fe7dd15a36792399f9de555ee3c47aaeb72a4 (diff) |
swaybar: fix sep block width for mixed scales
When there are outputs with mixed scales, it was possible for swaybar to
alter `block->separator_block_width` for an output with a higher scale,
and use the changed value for a lower scale output. This caused there to
be larger than normal separation between blocks on the lower scale
outputs. The issue is more obvious the larger the scale difference
between the highest scale output and the lowest scale output.
This fixes the issue by using a local variable that is originally set to
`block->separator_block_width` for rendering, but if it needs to be
increased, the local variable is the only thing touched.
Diffstat (limited to 'include/swaybar')
0 files changed, 0 insertions, 0 deletions