Skip to content

scene: Fix SurfaceItemWayland::freeze()

Vlad Zahorodnii requested to merge work/cherry-pick-94b2c5e5 into Plasma/6.1

When a wl_surface is unmapped, we need to stop updating the buffer in SurfacePixmapWayland.

However, SurfaceItemWayland::freeze() doesn't unset m_surface, so the SurfacePixmapWayland keeps updating the buffer even after the surface is unmapped. This results in some closed windows losing their contents when playing a window closing animation.

(cherry picked from commit 94b2c5e5)

Co-authored-by: Vlad Zahorodnii vlad.zahorodnii@kde.org

Merge request reports

Loading