diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-29 18:23:58 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-11-29 18:32:49 +0000 |
| commit | 3afe317e4637d511bb4f795d20d8e0467c0e42bf (patch) | |
| tree | ff1b69e90c23e30cbc430467a50eeac2a96eda2d /scripts/benchmark.py | |
| parent | input: regression: reset view (and cancel selection) on “handled” input (diff) | |
render: fix csd border rendering glitch when width > 5px
CSD borders are always *at least* 5px. If url.border-width=0, those
5px are all fully transparent (and act as interactive resize handles).
As csd.border-width increases, the number of transparent pixels
decrease. Once csd.border-width >= 5, the border is fully opaque.
When csd.border-width > 5, then width of the border is (obviously)
more than 5px. But, when rendering the opaque part of the border, we
still used 5px for the invisible part, which caused some pixman
rectangles to have negative x/y coordinates.
This resulted in rendering glitches due to overflows in pixman when
rendering the borders.
The fix is to ensure the total border size is always at least, but
not *always* 5px. That is, set it to max(5, csd.border-width).
This patch also fixes an issue where the CSD borders were not
dimmed (like the titlebar) when the window looses input focus.
Closes #823
Diffstat (limited to 'scripts/benchmark.py')
0 files changed, 0 insertions, 0 deletions
