dix: use IsXtstDevice instead of the direct key lookup.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
16b7ebd7d8
commit
a95f80fa91
|
@ -1231,7 +1231,7 @@ InitValuatorClassDeviceStruct(DeviceIntPtr dev, int numAxes, Atom *labels,
|
|||
dev->last.numValuators = numAxes;
|
||||
|
||||
if (IsMaster(dev) || /* do not accelerate master or xtest devices */
|
||||
dixLookupPrivate(&dev->devPrivates, XTstDevicePrivateKey ))
|
||||
IsXtstDevice(dev, NULL))
|
||||
InitPointerAccelerationScheme(dev, PtrAccelNoOp);
|
||||
else
|
||||
InitPointerAccelerationScheme(dev, PtrAccelDefault);
|
||||
|
|
Loading…
Reference in New Issue
Block a user