aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-08-03 19:57:13 +0200
committerVaxry <[email protected]>2024-08-03 19:57:13 +0200
commitcaf459a342470e3adc8c7a386d7ac4a2aacc9f77 (patch)
treeb0478ef72f3b2c20b679a86b5d8ed1d42b556376
parentcfd43c05f5288ebfda20c926b641a4e658d04fe0 (diff)
downloadHyprland-caf459a342470e3adc8c7a386d7ac4a2aacc9f77.tar.gz
Hyprland-caf459a342470e3adc8c7a386d7ac4a2aacc9f77.zip
ds cleanup better
-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);
});