diff options
author | Vaxry <[email protected]> | 2024-12-03 22:58:30 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-12-03 22:58:30 +0000 |
commit | 3c617ce33c64cb43049489598b6391911eed7070 (patch) | |
tree | ca2ffc7bd9d686f593e9a6822361e5fadb4a78ea /src | |
parent | f6ac755cf76750b8ee53389c54ef653590462c1c (diff) | |
download | Hyprland-3c617ce33c64cb43049489598b6391911eed7070.tar.gz Hyprland-3c617ce33c64cb43049489598b6391911eed7070.zip |
internal: fixup some missed updateColorsOk() calls
Diffstat (limited to 'src')
-rw-r--r-- | src/desktop/Window.cpp | 2 | ||||
-rw-r--r-- | src/managers/KeybindManager.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index b015d61f..34682b32 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -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); diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index cfb7453c..153c3c0d 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -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 |