mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Only init the calibration property for absolute devices.
Relative devices can't be calibrated anyway so why bother. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -2424,7 +2424,7 @@ EvdevInitProperty(DeviceIntPtr dev)
|
||||
rc = XIChangeDeviceProperty(dev, prop_calibration, XA_INTEGER,
|
||||
32, PropModeReplace, 4, calibration,
|
||||
FALSE);
|
||||
} else {
|
||||
} else if (pEvdev->flags & EVDEV_ABSOLUTE_EVENTS) {
|
||||
rc = XIChangeDeviceProperty(dev, prop_calibration, XA_INTEGER,
|
||||
32, PropModeReplace, 0, NULL,
|
||||
FALSE);
|
||||
|
||||
Reference in New Issue
Block a user