The extra wcmEvent call was to deal with generic PAD events received
without motion events in the same packet. Those PAD events would be
filtered out by the device type retrieving code later.

Signed-off-by: Ping Cheng <pi...@wacom.com>
---
 src/wcmUSB.c |   13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/wcmUSB.c b/src/wcmUSB.c
index 48a1f95..980dac3 100644
--- a/src/wcmUSB.c
+++ b/src/wcmUSB.c
@@ -1653,19 +1653,6 @@ static void usbDispatchEvents(InputInfoPtr pInfo)
                {
                        usbParseKeyEvent(common, event, channel);
                        usbParseBTNEvent(common, event, private->wcmBTNChannel);
-
-                       /* send PAD events now for generic devices. Otherwise,
-                        * they are filtered out when there are no motion 
events.
-                        */
-                       if ((common->wcmProtocolLevel == WCM_PROTOCOL_GENERIC)
-                           && 
(common->wcmChannel[private->wcmBTNChannel].dirty))
-                        {
-                               DBG(10, common, "Dirty flag set on channel %d; "
-                                   "sending event.\n", private->wcmBTNChannel);
-                               
common->wcmChannel[private->wcmBTNChannel].dirty = FALSE;
-                               wcmEvent(common, private->wcmBTNChannel,
-                                        
&common->wcmChannel[private->wcmBTNChannel].work);
-                       }
                }
        } /* next event */
 
-- 
1.7.10.4


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to