summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-06-27 05:47:38 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-06-27 06:58:27 +1000
commit356565111a6bb98f15fbaaf4f527aed8c87b477b (patch)
treedeb1280004c9091021e819c4af90a4ccb7fd1cde
parentfff3a60fbf5c81b337ae4eaf160feacdfc8c2465 (diff)
Don't allow a wheel emulation inertia of 0 (#66125)
Inertia of 0 results in an infinite loop of events being sent to the server. X.Org Bug 66125 <http://bugs.freedesktop.org/show_bug.cgi?id=66125> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/emuWheel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emuWheel.c b/src/emuWheel.c
index 5774930..81b777f 100644
--- a/src/emuWheel.c
+++ b/src/emuWheel.c
@@ -392,7 +392,7 @@ EvdevWheelEmuSetProperty(DeviceIntPtr dev, Atom atom, XIPropertyValuePtr val,
inertia = *((CARD16*)val->data);
- if (inertia < 0)
+ if (inertia <= 0)
return BadValue;
if (!checkonly)