libinput: Only forward first and last press and release for a button
authorJonas Ådahl <jadahl@gmail.com>
Fri, 30 Jan 2015 04:22:59 +0000 (12:22 +0800)
committerBryce Harrington <bryce@osg.samsung.com>
Thu, 5 Feb 2015 03:39:26 +0000 (19:39 -0800)
commite90b9e9b5958d3e613d7e08f58321fc664084dde
treef703f647f76905e316f0d5618955abaf9846079c
parent6b4b24155fb3f6fbfc98f38ba3eb5f2f3115371f
libinput: Only forward first and last press and release for a button

Pointer button events will be received from a device where a button has
been pressed, even though an equivalent button has been pressed (same
button code) on a device connected to the same seat. notify_button()
expects to only be called as if there was only one pointer device
associated with the given seat, so to achieve this, ignore every event
where forwarding it would result in multiple 'pressed' or 'released'
notifications.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/libinput-device.c