HID: lenovo: Hide middle-button press until release
authorJamie Lentin <jm@lentin.co.uk>
Tue, 11 Aug 2015 21:40:52 +0000 (22:40 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 12 Aug 2015 12:32:31 +0000 (14:32 +0200)
commit3cb5ff0220e31bd1043bb18fd5765c9f86928491
tree70369e3713cd7b5f2235e16c605566e6a083a91e
parentdbfebb44b7c650dd134a8be07f9afd5862150987
HID: lenovo: Hide middle-button press until release

Don't relay a middle button press to userspace until release, and then
only if there was no scroll events inbetween. This is closer to what
Xorg's wheel emulation does, and avoids spurious middle-click pastes.

Signed-off-by: Jamie Lentin <jm@lentin.co.uk>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lenovo.c