summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.hpp
diff options
context:
space:
mode:
authorMike Will <myQwil@gmail.com>2024-12-06 01:16:58 -0500
committerVaxry <vaxry@vaxry.net>2024-12-11 17:27:49 +0000
commitdf956a0f6fbcfd7397b2d7b86883c0936c7795ec (patch)
tree269946352158faa6a455c9e87337cb83c37998eb /src/config/ConfigManager.hpp
parent33f271c29a0069a95755b1d3252aeebe0fd85287 (diff)
windowrules: add rules for mouse and touchpad scroll factors (#8655)
Diffstat (limited to 'src/config/ConfigManager.hpp')
-rw-r--r--src/config/ConfigManager.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp
index 987884b5..2de217cb 100644
--- a/src/config/ConfigManager.hpp
+++ b/src/config/ConfigManager.hpp
@@ -263,6 +263,10 @@ class CConfigManager {
{"bordersize", [](const PHLWINDOW& pWindow) { return &pWindow->m_sWindowData.borderSize; }},
};
+ std::unordered_map<std::string, std::function<CWindowOverridableVar<float>*(PHLWINDOW)>> mfWindowProperties = {
+ {"scrollmouse", [](const PHLWINDOW& pWindow) { return &pWindow->m_sWindowData.scrollMouse; }},
+ {"scrolltouchpad", [](const PHLWINDOW& pWindow) { return &pWindow->m_sWindowData.scrollTouchpad; }}};
+
bool m_bWantsMonitorReload = false;
bool m_bForceReload = false;
bool m_bNoMonitorReload = false;