aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2024-11-20 11:02:21 +0000
committervaxerski <[email protected]>2024-11-20 11:02:21 +0000
commit940f7aa990dbc99815bab8d355999d8277534b17 (patch)
tree14e31dc5bcd1dfc70fea754a64d7b1792603157d
parente5fa017172156fa5c70fedeaee5f51eace9577c0 (diff)
downloadHyprland-940f7aa990dbc99815bab8d355999d8277534b17.tar.gz
Hyprland-940f7aa990dbc99815bab8d355999d8277534b17.zip
renderer: fixup blur optimization considitons
fixes #8531
-rw-r--r--src/render/Renderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index fc17ef9f..42545bc1 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -174,7 +174,6 @@ static void renderSurface(SP<CWLSurfaceResource> surface, int x, int y, void* da
}
const auto RDATA = (SRenderData*)data;
- const bool BLUR = RDATA->blur && !TEXTURE->m_bOpaque;
const auto INTERACTIVERESIZEINPROGRESS = RDATA->pWindow && g_pInputManager->currentlyDraggedWindow && g_pInputManager->dragMode == MBIND_RESIZE;
TRACY_GPU_ZONE("RenderSurface");
@@ -183,6 +182,7 @@ static void renderSurface(SP<CWLSurfaceResource> surface, int x, int y, void* da
auto PSURFACE = CWLSurface::fromResource(surface);
const float ALPHA = RDATA->alpha * RDATA->fadeAlpha * (PSURFACE ? PSURFACE->m_pAlphaModifier : 1.F);
+ const bool BLUR = RDATA->blur && (!TEXTURE->m_bOpaque || ALPHA < 1.F);
CBox windowBox;
if (RDATA->surface && surface == RDATA->surface) {