internal: fixup some missed updateColorsOk() calls

This commit is contained in:
Vaxry 2024-12-03 22:58:30 +00:00
parent f6ac755cf7
commit 3c617ce33c
2 changed files with 4 additions and 0 deletions

View file

@ -692,6 +692,8 @@ void CWindow::applyDynamicRule(const SWindowRule& r) {
inactiveBorderGradient.m_vColors.push_back(configStringToInt(token).value_or(0));
}
activeBorderGradient.updateColorsOk();
// Includes sanity checks for the number of colors in each gradient
if (activeBorderGradient.m_vColors.size() > 10 || inactiveBorderGradient.m_vColors.size() > 10)
Debug::log(WARN, "Bordercolor rule \"{}\" has more than 10 colors in one gradient, ignoring", r.szRule);

View file

@ -2997,6 +2997,8 @@ SDispatchResult CKeybindManager::setProp(std::string args) {
return std::invoke_result_t<decltype(::configStringToInt), const std::string&>(1);
});
colorData.updateColorsOk();
if (PROP == "activebordercolor")
PWINDOW->m_sWindowData.activeBorderColor = CWindowOverridableVar(colorData, PRIORITY_SET_PROP);
else