diff options
| author | MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> | 2025-04-15 23:00:40 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-16 01:00:40 +0200 |
| commit | ffd6cf65e40a7140e82dc6e076c90b5119d41a54 (patch) | |
| tree | 0ccf8c15626b26d1eef39d880fd0a10533bdb489 /src/desktop/Window.cpp | |
| parent | 8b7b169043de2a9d95f8505edb8b6576fac586fd (diff) | |
windowrules: allow incrementing window props (#9566)
Diffstat (limited to 'src/desktop/Window.cpp')
| -rw-r--r-- | src/desktop/Window.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 4b9a07fc..323aa03a 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -11,6 +11,7 @@ #include "../render/decorations/CHyprGroupBarDecoration.hpp" #include "../render/decorations/CHyprBorderDecoration.hpp" #include "../config/ConfigValue.hpp" +#include "../config/ConfigManager.hpp" #include "../managers/TokenManager.hpp" #include "../managers/AnimationManager.hpp" #include "../managers/ANRManager.hpp" @@ -780,7 +781,7 @@ void CWindow::applyDynamicRule(const SP<CWindowRule>& r) { const CVarList VARS(r->szRule, 0, ' '); if (auto search = NWindowProperties::intWindowProperties.find(VARS[1]); search != NWindowProperties::intWindowProperties.end()) { try { - *(search->second(m_pSelf.lock())) = CWindowOverridableVar(std::stoi(VARS[2]), priority); + *(search->second(m_pSelf.lock())) = CWindowOverridableVar(Hyprlang::INT(std::stoi(VARS[2])), priority); } catch (std::exception& e) { Debug::log(ERR, "Rule \"{}\" failed with: {}", r->szRule, e.what()); } } else if (auto search = NWindowProperties::floatWindowProperties.find(VARS[1]); search != NWindowProperties::floatWindowProperties.end()) { try { |
