render layer snapshot without blur

This commit is contained in:
Vaxry 2022-10-19 11:00:59 +01:00
parent dc1737f128
commit 98a32f5e52
1 changed files with 5 additions and 0 deletions

View File

@ -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.