mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 16:45:59 +01:00
fix issues with direct scanout's lack of surface frame feedback
This commit is contained in:
parent
12697d2b72
commit
082f439db2
1 changed files with 3 additions and 0 deletions
|
@ -594,6 +594,9 @@ bool CHyprRenderer::attemptDirectScanout(CMonitor* pMonitor) {
|
||||||
return false;
|
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);
|
wlr_presentation_surface_sampled_on_output(g_pCompositor->m_sWLRPresentation, PSURFACE, pMonitor->output);
|
||||||
|
|
||||||
if (wlr_output_commit(pMonitor->output)) {
|
if (wlr_output_commit(pMonitor->output)) {
|
||||||
|
|
Loading…
Reference in a new issue