core/compositor: Correctly track SHM buffer damage (#9678)

This commit is contained in:
Lee Bousfield
2025-03-22 11:13:44 -05:00
committed by GitHub
parent 4600043a49
commit 6384f4acf4
15 changed files with 103 additions and 82 deletions

View File

@@ -52,7 +52,7 @@ CViewportResource::CViewportResource(SP<CWpViewport> resource_, SP<CWLSurfaceRes
});
listeners.surfacePrecommit = surface->events.precommit.registerListener([this](std::any d) {
if (!surface || !surface->pending.texture)
if (!surface || !surface->pending.buffer)
return;
if (surface->pending.viewport.hasSource) {