mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-10 05:26:00 +01:00
render layer snapshot without blur
This commit is contained in:
parent
dc1737f128
commit
98a32f5e52
1 changed files with 5 additions and 0 deletions
|
@ -975,9 +975,14 @@ void CHyprOpenGLImpl::makeLayerSnapshot(SLayerSurface* pLayer) {
|
||||||
timespec now;
|
timespec now;
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
|
|
||||||
|
const auto BLURLSSTATUS = pLayer->forceBlur;
|
||||||
|
pLayer->forceBlur = false;
|
||||||
|
|
||||||
// draw the layer
|
// draw the layer
|
||||||
g_pHyprRenderer->renderLayer(pLayer, PMONITOR, &now);
|
g_pHyprRenderer->renderLayer(pLayer, PMONITOR, &now);
|
||||||
|
|
||||||
|
pLayer->forceBlur = BLURLSSTATUS;
|
||||||
|
|
||||||
// TODO: WARN:
|
// TODO: WARN:
|
||||||
// revise if any stencil-requiring rendering is done to the layers.
|
// revise if any stencil-requiring rendering is done to the layers.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue