ignore alpha when sharing window

This commit is contained in:
vaxerski 2022-12-05 18:00:57 +00:00
parent 6cf716f182
commit 9c67e08dbd

View file

@ -249,6 +249,11 @@ void CHyprRenderer::renderWindow(CWindow* pWindow, CMonitor* pMonitor, timespec*
renderdata.blur = !ignoreAllGeometry; // if it shouldn't, it will be ignored later
renderdata.pWindow = pWindow;
if (ignoreAllGeometry) {
renderdata.alpha = 1.f;
renderdata.fadeAlpha = 255.f;
}
// apply window special data
if (pWindow->m_sSpecialRenderData.alphaInactive == -1)
renderdata.alpha *= pWindow->m_sSpecialRenderData.alpha;