diff options
| author | nyx <nnyyxxxx@protonmail.com> | 2025-03-07 20:12:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-08 02:12:02 +0100 |
| commit | b80b64cd6c913f8c8ac820a1e4ca615a62ff958f (patch) | |
| tree | e6a6eda202efc6e5995245b3d6b8d0fa2650f7ca /src/desktop/WindowRule.cpp | |
| parent | 4082e876d522dc6ed7118d62cdaa729f84c1b755 (diff) | |
windowrules: add option to allow size persistence between app launches (#9422)
Diffstat (limited to 'src/desktop/WindowRule.cpp')
| -rw-r--r-- | src/desktop/WindowRule.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/desktop/WindowRule.cpp b/src/desktop/WindowRule.cpp index cf3004b0..23269085 100644 --- a/src/desktop/WindowRule.cpp +++ b/src/desktop/WindowRule.cpp @@ -5,7 +5,7 @@ #include "../config/ConfigManager.hpp" static const auto RULES = std::unordered_set<std::string>{ - "float", "fullscreen", "maximize", "noinitialfocus", "pin", "stayfocused", "tile", "renderunfocused", + "float", "fullscreen", "maximize", "noinitialfocus", "pin", "stayfocused", "tile", "renderunfocused", "persistentsize", }; static const auto RULES_PREFIX = std::unordered_set<std::string>{ "animation", "bordercolor", "bordersize", "center", "content", "fullscreenstate", "group", "idleinhibit", "maxsize", "minsize", @@ -39,6 +39,8 @@ CWindowRule::CWindowRule(const std::string& rule, const std::string& value, bool ruleType = RULE_TILE; else if (rule == "renderunfocused") ruleType = RULE_RENDERUNFOCUSED; + else if (rule == "persistentsize") + ruleType = RULE_PERSISTENTSIZE; else if (rule.starts_with("animation")) ruleType = RULE_ANIMATION; else if (rule.starts_with("bordercolor")) |
