From: Ping Cheng <[email protected]>

Only 2FGT devices in relative cursor movement, such as Bamboo, send
BTN_TOOL_DOUBLETAP events. Use MT_TOOL_FINGER to cover both Bamboo
and 2FGT touch screen devices.

Signed-off-by: Ping Cheng <[email protected]>
---
 src/wcmValidateDevice.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
index b4154c5..5b1a95c 100644
--- a/src/wcmValidateDevice.c
+++ b/src/wcmValidateDevice.c
@@ -292,9 +292,9 @@ int wcmDeviceTypeKeys(InputInfoPtr pInfo)
 
        if (common->wcmProtocolLevel == WCM_PROTOCOL_GENERIC)
        {
-               /* DOUBLETAP means 2 finger touch */
-               /* FINGER without DOUBLETAP means 1 finger touch */
-               if (ISBITSET(common->wcmKeys, BTN_TOOL_DOUBLETAP))
+               /* MT_TOOL_FINGER means at least 2 finger touch */
+               /* FINGER without MT_TOOL_FINGER means 1 finger touch */
+               if (ISBITSET(common->wcmKeys, MT_TOOL_FINGER))
                        priv->common->tablet_type |= WCM_2FGT;
                else if (ISBITSET(common->wcmKeys, BTN_TOOL_FINGER))
                        priv->common->tablet_type |= WCM_1FGT;
-- 
1.7.3.4


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to