From 7ea4fbf0ba034d947339b3a94a10da022eca1988 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Thu, 20 Mar 2025 06:08:47 -0500 Subject: types: Upgrade buffer ref from WP to SP (#9677) --- src/protocols/core/Compositor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/protocols/core/Compositor.cpp') diff --git a/src/protocols/core/Compositor.cpp b/src/protocols/core/Compositor.cpp index a3576c7e..e922c93e 100644 --- a/src/protocols/core/Compositor.cpp +++ b/src/protocols/core/Compositor.cpp @@ -440,7 +440,7 @@ void CWLSurfaceResource::commitPendingState(SSurfaceState& state) { if (current.texture) current.texture->m_eTransform = wlTransformToHyprutils(current.transform); - if (current.buffer && current.buffer->buffer) { + if (current.buffer) { const auto DAMAGE = accumulateCurrentBufferDamage(); current.buffer->buffer->update(DAMAGE); @@ -478,7 +478,7 @@ void CWLSurfaceResource::commitPendingState(SSurfaceState& state) { } void CWLSurfaceResource::updateCursorShm(CRegion damage) { - auto buf = current.buffer ? current.buffer->buffer : WP{}; + auto buf = current.buffer ? current.buffer->buffer : SP{}; if UNLIKELY (!buf) return; -- cgit v1.2.3