Skip to content

Commit

Permalink
convert bordercolors to GradientValueData correctly (#1122)
Browse files Browse the repository at this point in the history
Co-authored-by: Jef Steelant <[email protected]>
  • Loading branch information
ElJeffe and Jef Steelant authored Nov 28, 2022
1 parent 0a30290 commit 45d2d1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1431,8 +1431,8 @@ void CCompositor::updateWindowAnimatedDecorationValues(CWindow* pWindow) {
setBorderColor(RENDERDATA.borderColor);
else
setBorderColor(pWindow == m_pLastWindow ?
(pWindow->m_sSpecialRenderData.activeBorderColor >= 0 ? CGradientValueData(pWindow->m_sSpecialRenderData.activeBorderColor) : *ACTIVECOL) :
(pWindow->m_sSpecialRenderData.inactiveBorderColor >= 0 ? CGradientValueData(pWindow->m_sSpecialRenderData.inactiveBorderColor) : *INACTIVECOL));
(pWindow->m_sSpecialRenderData.activeBorderColor >= 0 ? CGradientValueData(CColor(pWindow->m_sSpecialRenderData.activeBorderColor) * (1.f / 255.f)) : *ACTIVECOL) :
(pWindow->m_sSpecialRenderData.inactiveBorderColor >= 0 ? CGradientValueData(CColor(pWindow->m_sSpecialRenderData.inactiveBorderColor) * (1.f / 255.f)) : *INACTIVECOL));


// opacity
Expand Down

0 comments on commit 45d2d1e

Please sign in to comment.