diff options
| author | Lee Bousfield <ljbousfield@gmail.com> | 2025-03-22 11:13:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-22 17:13:44 +0100 |
| commit | 6384f4acf4e2988bcb35d3dfc5821f07867a34d0 (patch) | |
| tree | 2da8d2275cc4acc435906c7fa84956ae2b17ade6 /src/protocols/Viewporter.cpp | |
| parent | 4600043a498b015360a0f2b6f682ae82aff1b198 (diff) | |
core/compositor: Correctly track SHM buffer damage (#9678)
Diffstat (limited to 'src/protocols/Viewporter.cpp')
| -rw-r--r-- | src/protocols/Viewporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/Viewporter.cpp b/src/protocols/Viewporter.cpp index 4964bead..d14e7ee5 100644 --- a/src/protocols/Viewporter.cpp +++ b/src/protocols/Viewporter.cpp @@ -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) { |
