fix fadeout with animated border

This commit is contained in:
vaxerski 2022-11-26 18:41:30 +00:00
parent 684c59e5bc
commit c709dc5e8e

View file

@ -311,7 +311,7 @@ void CHyprRenderer::renderWindow(CWindow* pWindow, CMonitor* pMonitor, timespec*
g_pHyprOpenGL->renderBorder(&windowBox, grad, rounding, a1); g_pHyprOpenGL->renderBorder(&windowBox, grad, rounding, a1);
if (ANIMATED) { if (ANIMATED) {
float a2 = 1.f - a1; float a2 = renderdata.fadeAlpha * renderdata.alpha / 255.f * (1.f - g_pHyprOpenGL->m_pCurrentWindow->m_fBorderAnimationProgress.fl());
g_pHyprOpenGL->renderBorder(&windowBox, g_pHyprOpenGL->m_pCurrentWindow->m_cRealBorderColorPrevious, rounding, a2); g_pHyprOpenGL->renderBorder(&windowBox, g_pHyprOpenGL->m_pCurrentWindow->m_cRealBorderColorPrevious, rounding, a2);
} }
} }