Package: xserver-xorg-input-tslib
Version: 0.0.5-3
Severity: wishlist

Hello,

The code tslib.c does not correctly detect the proper XINPUT ABI for the
latest Xorg. This patch does detection at compile time.

The patch author is Michael Frey [1].

Kind regards
 Wen-Yen Chuang (caleb)

[1]
https://bugs.edge.launchpad.net/ubuntu/+source/xf86-input-tslib/+bug/322325
Index: xf86-input-tslib-0.0.5/src/tslib.c
===================================================================
--- xf86-input-tslib-0.0.5.orig/src/tslib.c	2009-01-28 09:23:11.000000000 -0500
+++ xf86-input-tslib-0.0.5/src/tslib.c	2009-01-28 09:23:25.000000000 -0500
@@ -206,7 +206,9 @@
 
 		if (InitValuatorClassDeviceStruct(device,
 						  2,
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
 						  xf86GetMotionEvents,
+#endif
 						  0, Absolute) == FALSE) {
 			ErrorF("unable to allocate Valuator class device\n");
 			return !Success;

Reply via email to