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 <[email protected]> --- src/emuWheel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 1.8.2.1 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
