diff options
| author | Mike Will <myQwil@gmail.com> | 2024-12-06 01:16:58 -0500 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-12-11 17:27:49 +0000 |
| commit | df956a0f6fbcfd7397b2d7b86883c0936c7795ec (patch) | |
| tree | 269946352158faa6a455c9e87337cb83c37998eb /src/config/ConfigManager.cpp | |
| parent | 33f271c29a0069a95755b1d3252aeebe0fd85287 (diff) | |
windowrules: add rules for mouse and touchpad scroll factors (#8655)
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index ce474f94..b53ed4d9 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -2309,14 +2309,15 @@ bool windowRuleValid(const std::string& RULE) { "float", "fullscreen", "maximize", "noinitialfocus", "pin", "stayfocused", "tile", "renderunfocused", }; static const auto rulesPrefix = std::vector<std::string>{ - "animation", "bordercolor", "bordersize", "center", "fullscreenstate", "group", "idleinhibit", "maxsize", "minsize", "monitor", - "move", "opacity", "plugin:", "pseudo", "rounding", "size", "suppressevent", "tag", "workspace", "xray", + "animation", "bordercolor", "bordersize", "center", "fullscreenstate", "group", "idleinhibit", "maxsize", "minsize", "monitor", "move", + "opacity", "plugin:", "pseudo", "rounding", "scrollmouse", "scrolltouchpad", "size", "suppressevent", "tag", "workspace", "xray", }; const auto VALS = CVarList(RULE, 2, ' '); return rules.contains(RULE) || std::any_of(rulesPrefix.begin(), rulesPrefix.end(), [&RULE](auto prefix) { return RULE.starts_with(prefix); }) || (g_pConfigManager->mbWindowProperties.find(VALS[0]) != g_pConfigManager->mbWindowProperties.end()) || - (g_pConfigManager->miWindowProperties.find(VALS[0]) != g_pConfigManager->miWindowProperties.end()); + (g_pConfigManager->miWindowProperties.find(VALS[0]) != g_pConfigManager->miWindowProperties.end()) || + (g_pConfigManager->mfWindowProperties.find(VALS[0]) != g_pConfigManager->mfWindowProperties.end()); } bool layerRuleValid(const std::string& RULE) { |
