aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-09-22 16:39:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-09-23 18:33:02 +0000
commit3be44fb316b166c0b5d5536fdb5bb6c7abdd3a90 (patch)
tree2cca9ab228f706ad2ac443b0bfaee9003615951a /CHANGELOG.md
parentrender: fix application of old scroll damage when double buffering (diff)
render: overlay: fix visual glitches when double buffering
When rendering the overlay for scrollback search, the logic assumed buffer re-use. On some compositors this isn’t happening (on e.g. KDE/plasma we’re forced to double buffer). This resulted in matches not being highlighted correctly. The problem is in how we calculated the region for which areas to clear ("un-dim"). It uses the "previous frame’s see-through area" minus the current frame’s see-through area. However, when we’ve detected that the current buffer isn’t the same as the last one, we set the last frame’s see-through region to "the entire buffer". Thus, when calculating the diff, we end up with an empty region, and nothing is highlighted. Fix by simply using the current frame’s see-through region as-is when we’ve detected we’re not re-using the last frame’s buffer.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 17430354..dd0ac80b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -74,6 +74,9 @@
* Glitchy rendering when scrolling in the scrollback, on compositors
that does not allow Wayland buffer re-use (e.g. KDE/plasma)
([#1173][1173])
+* Scrollback search matches not being highlighted correctly, on
+ compositors that does now allow Wayland buffer re-use
+ (e.g. KDE/plasma).
[1173]: https://codeberg.org/dnkl/foot/issues/1173