From 549fdf63f6f72fadf4e1f67f42fc2a99d625b42e Mon Sep 17 00:00:00 2001 From: Jef <54236+ElJeffe@users.noreply.github.com> Date: Sun, 13 Nov 2022 20:33:13 +0100 Subject: Add bordercolor windowrule (#992) * Add bordercolor windowrule * remove spaces form bordercolor rule + typo Co-authored-by: Jef Steelant --- src/Compositor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 4638f3f0..b1bbe800 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1415,7 +1415,9 @@ void CCompositor::updateWindowAnimatedDecorationValues(CWindow* pWindow) { if (RENDERDATA.isBorderColor) pWindow->m_cRealBorderColor = RENDERDATA.borderColor; else - pWindow->m_cRealBorderColor = CColor(pWindow == m_pLastWindow ? *ACTIVECOL : *INACTIVECOL); + pWindow->m_cRealBorderColor = CColor(pWindow == m_pLastWindow ? + (pWindow->m_sSpecialRenderData.activeBorderColor >= 0 ? pWindow->m_sSpecialRenderData.activeBorderColor : *ACTIVECOL) : + (pWindow->m_sSpecialRenderData.inactiveBorderColor >= 0 ? pWindow->m_sSpecialRenderData.inactiveBorderColor : *INACTIVECOL)); // opacity -- cgit v1.2.3