aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-12-10 12:25:17 -0500
committeremersion <contact@emersion.fr>2018-12-12 10:23:57 +0100
commit549d9fe489a6a75ef486c67658b34649f4316873 (patch)
tree1542d0bf406633aac5b2fb0dcb980a962c897f48 /include/swaybar
parent8b4fe7dd15a36792399f9de555ee3c47aaeb72a4 (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