Skip to content

Commit

Permalink
internal: fixup some missed updateColorsOk() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Dec 3, 2024
1 parent f6ac755 commit 3c617ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/desktop/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions src/managers/KeybindManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c617ce

Please sign in to comment.