From 6384f4acf4e2988bcb35d3dfc5821f07867a34d0 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Sat, 22 Mar 2025 11:13:44 -0500 Subject: core/compositor: Correctly track SHM buffer damage (#9678) --- src/xwayland/XSurface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/xwayland/XSurface.cpp') 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; -- cgit v1.2.3