Xext: don't accept DeviceValuator if the dev doesn't have valuators (in xtest)

Reported by Chris Ball.
This commit is contained in:
Peter Hutterer 2009-01-09 11:39:02 +10:00
parent a3f9e887d9
commit 83eb863e3c

View File

@ -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;