diff options
author | vaxerski <[email protected]> | 2022-12-06 12:57:10 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-12-06 12:57:10 +0000 |
commit | 7ed401e5e0779e851667c2e5d220c24e9a5b8737 (patch) | |
tree | 0747d285d72c3a53158b01f0870414ed8396bc19 | |
parent | da76a1ed9eab3d1b5cf5fae4d040f8efe08b586c (diff) | |
download | Hyprland-7ed401e5e0779e851667c2e5d220c24e9a5b8737.tar.gz Hyprland-7ed401e5e0779e851667c2e5d220c24e9a5b8737.zip |
fix group border oversaturation
-rw-r--r-- | src/Compositor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index cbb8218b..59843b90 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1446,11 +1446,11 @@ void CCompositor::updateWindowAnimatedDecorationValues(CWindow* pWindow) { // border const auto RENDERDATA = g_pLayoutManager->getCurrentLayout()->requestRenderHints(pWindow); if (RENDERDATA.isBorderColor) - setBorderColor(RENDERDATA.borderColor); + setBorderColor(RENDERDATA.borderColor * (1.f / 255.f)); else setBorderColor(pWindow == m_pLastWindow ? - (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)); + (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 |