summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-06 14:20:03 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-06 14:20:03 +0000
commit082f439db2ccb58f2792a4885a0aa09ae666a6b0 (patch)
tree65a04c841bbcb8047f96b9f09e50bd9c95e98576 /src
parent12697d2b722ec0976ac6b2fc650f26ea61d36627 (diff)
fix issues with direct scanout's lack of surface frame feedback
Diffstat (limited to 'src')
-rw-r--r--src/render/Renderer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 1c8fb78d..c9ae0a80 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -594,6 +594,9 @@ bool CHyprRenderer::attemptDirectScanout(CMonitor* pMonitor) {
return false;
}
+ timespec now;
+ clock_gettime(CLOCK_MONOTONIC, &now);
+ wlr_surface_send_frame_done(PSURFACE, &now);
wlr_presentation_surface_sampled_on_output(g_pCompositor->m_sWLRPresentation, PSURFACE, pMonitor->output);
if (wlr_output_commit(pMonitor->output)) {