From 79e375ff801bfe6caa27524c001a6ce8b27cec6f Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Fri, 7 Nov 2008 02:08:09 +0100 Subject: and now it works! Signed-off-by: Henrik Rydberg --- src/multitouch.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/multitouch.c b/src/multitouch.c index 7ea1f92..7102b1c 100644 --- a/src/multitouch.c +++ b/src/multitouch.c @@ -29,6 +29,14 @@ static void pointer_control(DeviceIntPtr dev, PtrCtrl *ctrl) { } +static int pointer_property(DeviceIntPtr dev, + Atom property, + XIPropertyValuePtr prop, + BOOL checkonly) +{ + return Success; +} + //////////////////////////////////////////////////////////////////////////// static int device_init(DeviceIntPtr dev, LocalDevicePtr local) @@ -61,15 +69,15 @@ static int device_init(DeviceIntPtr dev, LocalDevicePtr local) mt->caps.abs_position_x.minimum, mt->caps.abs_position_x.maximum, 1, 0, 1); - xf86InitValuatorDefaults(dev, 0); xf86InitValuatorAxisStruct(dev, 1, mt->caps.abs_position_y.minimum, mt->caps.abs_position_y.maximum, 1, 0, 1); + xf86InitValuatorDefaults(dev, 0); xf86InitValuatorDefaults(dev, 1); - //InitDeviceProperties(local); - //XIRegisterPropertyHandler(dev, SetProperty, NULL, NULL); + InitDeviceProperties(local); + XIRegisterPropertyHandler(dev, pointer_property, NULL, NULL); return 0; } -- cgit v1.2.3