evdev: don't send frame events if we filtered the touch event
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 3 Aug 2016 02:19:54 +0000 (12:19 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Sep 2016 01:17:03 +0000 (11:17 +1000)
commitb22dcab4631f3de41faa3e536080ffbd6bea6e7b
tree8189b0e2792a2d6fe8334c139ede106f60dd2773
parentb0ec4bacbdbada042f23ccf1bcc382ff754972c2
evdev: don't send frame events if we filtered the touch event

If the touch is inactive the seat_slot is -1 and we filter the event. The same
happens for devices that send may touch events but aren't touch devices like
any touch-capable mouse. In those cases we sent a bunch of 'empty' touch frame
events. Stop this by checking if we actually flushed the respective event.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
src/evdev.c