From 2ca24a16f08095f35d5610f16e202c525b3075e9 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 1 Dec 2009 14:16:10 +1000 Subject: Only init the calibration property for absolute devices. Relative devices can't be calibrated anyway so why bother. Signed-off-by: Peter Hutterer --- src/evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3