This commit is contained in:
Vaxry 2024-06-26 22:23:18 +02:00
parent 9fc57fc321
commit 00a8171643

View file

@ -1102,6 +1102,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);