Several Wacom tablets expose their pen and touch interfaces on separate physical devices. In these cases (e.g. Cintiq 24HDT) the Wacom kernel driver is able to use its knowledge of bus topography to entangle the devices and perform arbitration on its own, but in others (e.g. several tablet PCs) one or both devices may not be handled by the Wacom driver at all. Though the X driver may be aware of both devices in these cases it is not currently capable of arbitrating pointer access, resulting in a poor experience as the pointer is simultaneously controlled by the pen and (unintentional) touches from the user's palm.
This patch set aims to beef up the X driver's arbitration logic so that it work across all devices that it is aware of. The first two patches are just cleanup work necessary to get the cross-device arbitration code in place. Patch number three is the meat of the set, adding a new driver-wide structure that contains an "active" device reference which is consulted whenever events come into the system. The fourth and final patch tweaks the gesture handling code so that events which have been accumulating in the 'valid.states' list are not suddenly able to trigger a gesture as soon as the touch device becomes active. Jason Gerecke (4): Remove unused function parameter Change function signature of commonDispatchDevice Support cross-device pointer arbitration Add new GESTURE_CANCEL_MODE and wcmCancelGesture function src/wcmCommon.c | 209 ++++++++++++++++++++++++++------------------------- src/wcmTouchFilter.c | 32 ++++++++ src/xf86Wacom.h | 1 + src/xf86WacomDefs.h | 8 +- 4 files changed, 148 insertions(+), 102 deletions(-) -- 2.0.2 ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel