summaryrefslogtreecommitdiff
path: root/src/desktop/Window.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/desktop/Window.hpp
parent33f271c29a0069a95755b1d3252aeebe0fd85287 (diff)
windowrules: add rules for mouse and touchpad scroll factors (#8655)
Diffstat (limited to 'src/desktop/Window.hpp')
-rw-r--r--src/desktop/Window.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/desktop/Window.hpp b/src/desktop/Window.hpp
index fc7ead24..590194e1 100644
--- a/src/desktop/Window.hpp
+++ b/src/desktop/Window.hpp
@@ -184,6 +184,9 @@ struct SWindowData {
CWindowOverridableVar<int> rounding;
CWindowOverridableVar<int> borderSize;
+ CWindowOverridableVar<float> scrollMouse;
+ CWindowOverridableVar<float> scrollTouchpad;
+
CWindowOverridableVar<std::string> animationStyle;
CWindowOverridableVar<Vector2D> maxSize;
CWindowOverridableVar<Vector2D> minSize;
@@ -442,6 +445,8 @@ class CWindow {
bool isFullscreen();
bool isEffectiveInternalFSMode(const eFullscreenMode);
int getRealBorderSize();
+ float getScrollMouse();
+ float getScrollTouchpad();
void updateWindowData();
void updateWindowData(const struct SWorkspaceRule&);
void onBorderAngleAnimEnd(void* ptr);