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/xwayland/XSurface.cpp | |
| parent | 4600043a498b015360a0f2b6f682ae82aff1b198 (diff) | |
core/compositor: Correctly track SHM buffer damage (#9678)
Diffstat (limited to 'src/xwayland/XSurface.cpp')
| -rw-r--r-- | src/xwayland/XSurface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xwayland/XSurface.cpp b/src/xwayland/XSurface.cpp index b297c29c..30e38ac2 100644 --- a/src/xwayland/XSurface.cpp +++ b/src/xwayland/XSurface.cpp @@ -62,12 +62,12 @@ void CXWaylandSurface::ensureListeners() { }); listeners.commitSurface = surface->events.commit.registerListener([this](std::any d) { - if (surface->pending.texture && !mapped) { + if (surface->current.texture && !mapped) { map(); return; } - if (!surface->pending.texture && mapped) { + if (!surface->current.texture && mapped) { unmap(); return; } @@ -131,7 +131,7 @@ void CXWaylandSurface::considerMap() { return; } - if (surface->pending.texture) { + if (surface->current.texture) { Debug::log(LOG, "XWayland surface: considerMap, sure, we have a buffer"); map(); return; |
