mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 19:04:50 +00:00
dix: use IsXtstDevice instead of the direct key lookup.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user