diff options
| author | ItsOhen <TNordfeldt@gmail.com> | 2026-03-13 22:50:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-13 16:50:34 -0500 |
| commit | de3471b3356280e692109cea81e426b7222a8aea (patch) | |
| tree | c7b454165cd9b198728958623849c32ff58634b3 /src/config/ConfigManager.cpp | |
| parent | 2877ca2933a2f6e11512479b18e5d418b3e23da3 (diff) | |
config/workspacerule: add animation style (#13380)
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index e4632bb9..93edfe23 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1681,6 +1681,8 @@ SWorkspaceRule CConfigManager::mergeWorkspaceRules(const SWorkspaceRule& rule1, mergedRule.layoutopts[layoutopt.first] = layoutopt.second; } } + if (rule2.animationStyle.has_value()) + mergedRule.animationStyle = rule2.animationStyle; return mergedRule; } @@ -1921,7 +1923,6 @@ PHLMONITOR CConfigManager::getBoundMonitorForWS(const std::string& wsname) { std::string CConfigManager::getBoundMonitorStringForWS(const std::string& wsname) { for (auto const& wr : m_workspaceRules) { const auto WSNAME = wr.workspaceName.starts_with("name:") ? wr.workspaceName.substr(5) : wr.workspaceName; - if (WSNAME == wsname) return wr.monitor; } @@ -2774,6 +2775,9 @@ std::optional<std::string> CConfigManager::handleWorkspaceRules(const std::strin } else if ((delim = rule.find("layout:")) != std::string::npos) { std::string layout = rule.substr(delim + 7); wsRule.layout = std::move(layout); + } else if ((delim = rule.find("animation:")) != std::string::npos) { + std::string animationStyle = rule.substr(delim + 10); + wsRule.animationStyle = std::move(animationStyle); } return {}; |
