diff options
| author | Lee Bousfield <ljbousfield@gmail.com> | 2025-03-20 06:08:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-20 11:08:47 +0000 |
| commit | 7ea4fbf0ba034d947339b3a94a10da022eca1988 (patch) | |
| tree | b11658530b257468b29c589c4c8dda7d39861442 /src/helpers/Monitor.cpp | |
| parent | f6ca4bac51595555916f7403ae178680791f824c (diff) | |
types: Upgrade buffer ref from WP to SP (#9677)
Diffstat (limited to 'src/helpers/Monitor.cpp')
| -rw-r--r-- | src/helpers/Monitor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 2af548d2..30c15e4e 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -1342,7 +1342,7 @@ bool CMonitor::attemptDirectScanout() { const auto PSURFACE = g_pXWaylandManager->getWindowSurface(PCANDIDATE); - if (!PSURFACE || !PSURFACE->current.texture || !PSURFACE->current.buffer || PSURFACE->current.buffer->buffer.expired()) + if (!PSURFACE || !PSURFACE->current.texture || !PSURFACE->current.buffer) return false; if (PSURFACE->current.bufferSize != vecPixelSize || PSURFACE->current.transform != transform) @@ -1355,7 +1355,7 @@ bool CMonitor::attemptDirectScanout() { Debug::log(TRACE, "attemptDirectScanout: surface {:x} passed, will attempt, buffer {}", (uintptr_t)PSURFACE.get(), (uintptr_t)PSURFACE->current.buffer->buffer.get()); - auto PBUFFER = PSURFACE->current.buffer->buffer.lock(); + auto PBUFFER = PSURFACE->current.buffer->buffer; if (PBUFFER == output->state->state().buffer) { if (scanoutNeedsCursorUpdate) { |
