diff options
author | Ping Cheng <pinglinux@gmail.com> | 2013-03-05 16:46:27 -0800 |
---|---|---|
committer | Jason Gerecke <killertofu@gmail.com> | 2013-03-06 10:55:14 -0800 |
commit | 9077b12cd6ef7a9772aaea00b52baad64471e4e4 (patch) | |
tree | 8d7e4b6d030a274257d54d542240b0727729894a | |
parent | db17462c0e85f880647f23a0e8bbfd4d20a38303 (diff) | |
download | xf86-input-wacom-9077b12cd6ef7a9772aaea00b52baad64471e4e4.tar.gz |
Consolidate calls to wcmEvent into one statement
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 <pingc@wacom.com>
Acked-by: Chris Bagwell <chris@cnpbagwell.com>
Reviewed-by: Jason Gerecke <killertofu@gmail.com>
-rw-r--r-- | src/wcmUSB.c | 13 |
1 files changed, 0 insertions, 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 */ |