aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/SeatManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/SeatManager.cpp')
-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);
}