aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/helpers/Monitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/Monitor.cpp')
-rw-r--r--src/helpers/Monitor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 4f816dfd..111f524e 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -830,7 +830,8 @@ bool CMonitor::attemptDirectScanout() {
if (DOEXPLICIT)
explicitWaitFD = PSURFACE->syncobj->acquireTimeline->timeline->exportAsSyncFileFD(PSURFACE->syncobj->acquirePoint);
- auto closeExplicitFD = CScopeGuard([explicitWaitFD]() {
+ auto cleanup = CScopeGuard([explicitWaitFD, this]() {
+ output->state->resetExplicitFences();
if (explicitWaitFD >= 0)
close(explicitWaitFD);
});