summaryrefslogtreecommitdiff
path: root/src
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-01 15:44:18 +1000
commit2ca24a16f08095f35d5610f16e202c525b3075e9 (patch)
tree25ca3fd7d5b2acd94ad18e6a854daa8c1fd9f731 /src
parent7b285a802b8ccddd1edcf40ab345c4a96bcdf43c (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index afa9bc5..85503bf 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -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);