From 00a8171643413a6708caabbe22a8be5a653fc451 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 26 Jun 2024 22:23:18 +0200 Subject: [PATCH] ye test --- src/render/Renderer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index abd1ec66..a0591416 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1102,6 +1102,9 @@ bool CHyprRenderer::attemptDirectScanout(CMonitor* pMonitor) { pMonitor->output->state->setBuffer(PSURFACE->current.buffer); + if (!pMonitor->state.test()) + return false; + timespec now; clock_gettime(CLOCK_MONOTONIC, &now); PSURFACE->frame(&now);