diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-07-22 19:07:21 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-07-22 19:23:36 -0400 |
commit | a32180afa784c2d98e6be5377f9e86aee83d25d1 (patch) | |
tree | cfbce6189423f392d633041bc988e290e4f69056 /include/interfaces/wlr_input_device.h | |
parent | 63f5851b6fdc630355510c44e875119c4755208d (diff) |
wlr_scene: Fix damage tracking with non atomic opaque region configuration
We need to intersect the opaque region with the node size or else we'll
get damage tracking effects with compositors attempting to use
wlr_scene_buffer_set_opaque_region() along with resizing the buffer
at the same time in a certain order.
Consider this: I have a new buffer that I want to commit to my scene buffer
that is smaller than the old one. However, I still have the old opaque
region that is the size of the old larger buffer, so that means that
for the small moment between when we reconfigure the opaque region for the
new buffer the opaque region will be oversized. Scene logic will then
try to apply occluding optimizations outside of the node boundaries
causing damage artifacts.
Diffstat (limited to 'include/interfaces/wlr_input_device.h')
0 files changed, 0 insertions, 0 deletions