Xext: don't accept DeviceValuator if the dev doesn't have valuators (in xtest)
Reported by Chris Ball.
This commit is contained in:
parent
a3f9e887d9
commit
83eb863e3c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user