From: Chris Bagwell <ch...@cnpbagwell.com>

Init device type always is a good idea.  Plus its required
so that filtering works correctly for MT devices that do
not have a pen+touch.

Signed-off-by: Chris Bagwell <ch...@cnpbagwell.com>
---
 src/wcmUSB.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/wcmUSB.c b/src/wcmUSB.c
index d8bd404..48555dd 100644
--- a/src/wcmUSB.c
+++ b/src/wcmUSB.c
@@ -1412,11 +1412,11 @@ static void usbDispatchEvents(InputInfoPtr pInfo)
 
        DBG(6, common, "%d events received\n", private->wcmEventCnt);
 
+       private->wcmDeviceType = usbInitToolType(private->wcmEvents,
+                                                private->wcmEventCnt);
+
        if (private->wcmPenTouch)
        {
-               private->wcmDeviceType = usbInitToolType(private->wcmEvents,
-                                               private->wcmEventCnt);
-
                /* We get both pen and touch data from the kernel when they
                 * both are in/down. So, if we were (hence the need of dslast)
                 * processing pen events, we should ignore touch events.
-- 
1.7.3.4


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to