aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-12-01 14:16:10 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-12-03 09:27:31 +1000
commit22e816eb326a5495a5dc6e0a94394534d6645bae (patch)
treed420ca37203030be436967630c4547395bce00e3
parentReport initial calibration parameters. (diff)
downloadxf86-input-evdev-22e816eb326a5495a5dc6e0a94394534d6645bae.tar.gz
xf86-input-evdev-22e816eb326a5495a5dc6e0a94394534d6645bae.tar.bz2
xf86-input-evdev-22e816eb326a5495a5dc6e0a94394534d6645bae.zip
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> (cherry picked from commit 2ca24a16f08095f35d5610f16e202c525b3075e9)
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index d37889d..9470ea8 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -2522,7 +2522,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);