From 98a32f5e52143bd40cb574822889d7ae64818fb0 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 19 Oct 2022 11:00:59 +0100 Subject: [PATCH] render layer snapshot without blur --- src/render/OpenGL.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 70ba7121..fef110d3 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -975,9 +975,14 @@ void CHyprOpenGLImpl::makeLayerSnapshot(SLayerSurface* pLayer) { timespec now; clock_gettime(CLOCK_MONOTONIC, &now); + const auto BLURLSSTATUS = pLayer->forceBlur; + pLayer->forceBlur = false; + // draw the layer g_pHyprRenderer->renderLayer(pLayer, PMONITOR, &now); + pLayer->forceBlur = BLURLSSTATUS; + // TODO: WARN: // revise if any stencil-requiring rendering is done to the layers.