summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2013-03-04 18:33:03 +0100
committerJason Gerecke <killertofu@gmail.com>2013-03-06 10:55:21 -0800
commitc3b4e869924291ee1ec72a2f02fc1986873efe92 (patch)
tree605c960b2f31b79a408421ea5cc2465784014ef2
parent9077b12cd6ef7a9772aaea00b52baad64471e4e4 (diff)
downloadxf86-input-wacom-c3b4e869924291ee1ec72a2f02fc1986873efe92.tar.gz
Make touchscreens (WCM_LCD) direct touch devices
Tested with a tablet pc, allowing finger scrolling in GTK3. Signed-off-by: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Tested-by: Jason Gerecke <killertofu@gmail.com>
-rw-r--r--src/xf86Wacom.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xf86Wacom.c b/src/xf86Wacom.c
index 2a44f11..e92f56f 100644
--- a/src/xf86Wacom.c
+++ b/src/xf86Wacom.c
@@ -422,7 +422,10 @@ static int wcmDevInit(DeviceIntPtr pWcm)
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 16
if (IsTouch(priv)) {
- if (!InitTouchClassDeviceStruct(pInfo->dev, common->wcmMaxContacts, XIDependentTouch, 2)) {
+ if (!InitTouchClassDeviceStruct(pInfo->dev, common->wcmMaxContacts,
+ TabletHasFeature(common, WCM_LCD) ? XIDirectTouch : XIDependentTouch,
+ 2))
+ {
xf86Msg(X_ERROR, "Unable to init touch class device struct!\n");
return FALSE;
}