This commit is contained in:
Vaxry 2024-06-26 22:23:18 +02:00
parent 1491a853c5
commit c2b4b25346

View file

@ -1105,6 +1105,9 @@ bool CHyprRenderer::attemptDirectScanout(CMonitor* pMonitor) {
pMonitor->output->state->setBuffer(PSURFACE->current.buffer); pMonitor->output->state->setBuffer(PSURFACE->current.buffer);
if (!pMonitor->state.test())
return false;
timespec now; timespec now;
clock_gettime(CLOCK_MONOTONIC, &now); clock_gettime(CLOCK_MONOTONIC, &now);
PSURFACE->frame(&now); PSURFACE->frame(&now);