diff options
author | 2018-12-10 12:25:17 -0500 | |
---|---|---|
committer | 2018-12-12 10:23:57 +0100 | |
commit | 549d9fe489a6a75ef486c67658b34649f4316873 (patch) | |
tree | 1542d0bf406633aac5b2fb0dcb980a962c897f48 /include/swaynag/config.h | |
parent | swaybar: handle block->urgent (diff) | |
download | sway-549d9fe489a6a75ef486c67658b34649f4316873.tar.gz sway-549d9fe489a6a75ef486c67658b34649f4316873.tar.zst sway-549d9fe489a6a75ef486c67658b34649f4316873.zip |
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/swaynag/config.h')
0 files changed, 0 insertions, 0 deletions