The idea is tablet report BTN_TOOL_PEN event while in proximity mode.
evdev should avoid translate this event to BTN_LEFT so tablet can move
cursor without button pushed.


--- xserver-xorg-input-evdev-2.2.5/src/evdev.c	2009-08-21 07:01:37.000000000 +0800
+++ xserver-xorg-input-evdev-2.2.5-sam/src/evdev.c	2009-12-01 22:07:18.000000000 +0800
@@ -431,8 +431,9 @@
                     if (!(pEvdev->flags & EVDEV_TOUCHSCREEN))
                         break;
                     /* Treat BTN_TOUCH from devices that only have BTN_TOUCH as
-                     * BTN_LEFT. */
-                    ev->code = BTN_LEFT;
+                     * BTN_LEFT. But let BTN_TOOL_PEN pass through for proximity mode */
+		    if (ev->code != BTN_TOOL_PEN)
+			ev->code = BTN_LEFT;
                     /* Intentional fallthrough! */
 
                 default:
_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to