aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-08-02 17:13:58 +0200
committerVaxry <[email protected]>2024-08-03 18:23:44 +0200
commitb52b55a8a474c0981b78ad42c6b039a765890fde (patch)
tree9e5201edb95aebc361df0b870ea27d9ee7070642
parent08e3a0fde6d052eaabbbb10544f3c182f4032db8 (diff)
downloadHyprland-b52b55a8a474c0981b78ad42c6b039a765890fde.tar.gz
Hyprland-b52b55a8a474c0981b78ad42c6b039a765890fde.zip
stuffff
-rw-r--r--src/helpers/Monitor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index cdadd1cd..ce8920e6 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -1,6 +1,7 @@
#include "Monitor.hpp"
#include "MiscFunctions.hpp"
#include "math/Math.hpp"
+#include "sync/SyncReleaser.hpp"
#include "../Compositor.hpp"
#include "../config/ConfigValue.hpp"
#include "../protocols/GammaControl.hpp"
@@ -838,6 +839,9 @@ bool CMonitor::attemptDirectScanout() {
// delay explicit sync feedback until kms release of the buffer
if (DOEXPLICIT) {
+ Debug::log(TRACE, "Delaying explicit sync release feedback until kms release");
+ PSURFACE->current.buffer->releaser->drop();
+
PSURFACE->current.buffer->buffer->hlEvents.backendRelease2 = PSURFACE->current.buffer->buffer->events.backendRelease.registerListener([PSURFACE](std::any d) {
const bool DOEXPLICIT = PSURFACE->syncobj && PSURFACE->syncobj->releaseTimeline && PSURFACE->syncobj->releaseTimeline->timeline;
if (DOEXPLICIT)