aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers
diff options
context:
space:
mode:
authorIkalco <[email protected]>2024-11-26 07:52:43 -0600
committerGitHub <[email protected]>2024-11-26 13:52:43 +0000
commit1fb720b62aeb474873ba43426ddc53afde1e6cdd (patch)
tree546fac08bacc7e9521d77169e726a6ecd4d0683e /src/managers
parent268778823676ef2bbda42050d78946e1fc27fc31 (diff)
downloadHyprland-1fb720b62aeb474873ba43426ddc53afde1e6cdd.tar.gz
Hyprland-1fb720b62aeb474873ba43426ddc53afde1e6cdd.zip
seat: fix double scrolling in some applications (#8583)
Diffstat (limited to 'src/managers')
-rw-r--r--src/managers/SeatManager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/managers/SeatManager.cpp b/src/managers/SeatManager.cpp
index b40d6cad..665805f6 100644
--- a/src/managers/SeatManager.cpp
+++ b/src/managers/SeatManager.cpp
@@ -332,8 +332,10 @@ void CSeatManager::sendPointerAxis(uint32_t timeMs, wl_pointer_axis axis, double
p->sendAxisRelativeDirection(axis, relative);
if (source == 0) {
- p->sendAxisValue120(axis, value120);
- p->sendAxisDiscrete(axis, discrete);
+ if (p->version() >= 8)
+ p->sendAxisValue120(axis, value120);
+ else
+ p->sendAxisDiscrete(axis, discrete);
} else if (value == 0)
p->sendAxisStop(timeMs, axis);
}