--- xf86-input-evtouch-0.8.8.orig/evtouch.c +++ xf86-input-evtouch-0.8.8/evtouch.c @@ -30,8 +30,8 @@ #define _evdev_touch_C_ -#include -#if XF86_VERSION_CURRENT >= XF86_VERSION_NUMERIC(3,9,0,0,0) +#include +#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(3,9,0,0,0) #define XFREE86_V4 #endif @@ -74,7 +74,6 @@ #include "xf86_OSproc.h" #include "xf86Xinput.h" #include "exevents.h" -#include "xf86OSmouse.h" #include "randrstr.h" #ifndef NEED_XF86_TYPES @@ -139,7 +138,7 @@ "Kenan Esau", MODINFOSTRING1, MODINFOSTRING2, - XF86_VERSION_CURRENT, + XORG_VERSION_CURRENT, 0, 8, 8, ABI_CLASS_XINPUT, ABI_XINPUT_VERSION, @@ -653,14 +652,13 @@ * Device reports motions on 2 axes in absolute coordinates. * Axes min and max values are reported in raw coordinates. */ - if (InitValuatorClassDeviceStruct(dev, 2, xf86GetMotionEvents, + if (InitValuatorClassDeviceStruct(dev, 2, local->history_size, Absolute) == FALSE) { ErrorF ("Unable to allocate EVTouch touchscreen ValuatorClassDeviceStruct\n"); return !Success; } -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 2 xf86InitValuatorAxisStruct(dev, 0, 0, priv->screen_width, 1024, EV_AXIS_MIN_RES /* min_res */ , @@ -671,10 +669,6 @@ EV_AXIS_MIN_RES /* min_res */ , EV_AXIS_MAX_RES /* max_res */ ); xf86InitValuatorDefaults(dev, 1); -#else - xf86InitValuatorAxisStruct(dev, 0, priv->min_x, priv->max_x, - xf86InitValuatorDefaults(dev, 1); -#endif /* Initial position of pointer on screen: Centered */ priv->cur_x=(priv->max_x - priv->min_x)/2;