summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-01-09 11:39:02 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-01-09 16:08:58 +1000
commit83eb863e3cfcd62549b836f3195107d8908b36d0 (patch)
tree1029a83b1925c4aff9a1723057fcaac9a6dab31b /Xext
parenta3f9e887d9ff5fdee6c35ccc0f7b324723a83a46 (diff)
Xext: don't accept DeviceValuator if the dev doesn't have valuators (in xtest)
Reported by Chris Ball.
Diffstat (limited to 'Xext')
-rw-r--r--Xext/xtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xext/xtest.c b/Xext/xtest.c
index 87936402a..c775b7bcb 100644
--- a/Xext/xtest.c
+++ b/Xext/xtest.c
@@ -213,7 +213,7 @@ ProcXTestFakeInput(client)
} else
firstValuator = 0;
- if (nev == 1 && type == XI_DeviceMotionNotify && !dev->valuator)
+ if (nev > 1 && !dev->valuator)
{
client->errorValue = dv->first_valuator;
return BadValue;