input: do not forward unmatched touch-ups
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 2 Mar 2018 12:20:59 +0000 (14:20 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 30 May 2018 11:46:14 +0000 (14:46 +0300)
commit332a45e0966b2dae9bfadc136345590fc1d4ab35
tree2529a44e08161d3eb336238533a9f73a48749105
parent813a06e4558f397aec11e457fe7a1d683a8b3bfb
input: do not forward unmatched touch-ups

Commit a30e29af2e4d0ad6fc476ae7cc13c4cad5119217 introduced the code to
deal with a touchscreen with touches already down when Weston starts
using it. It fixed the touchpoint counting problem.

However, Weston still should not forward or process the unmatched
touch-ups either. Code inspection says it would confuse the
idle-inhibit counting, and it could probably confuse clients as well.
Hence, just drop unmatched touch-ups.

Enhance the warning message to allow identifying where the event came
from.

v2:
- use syspath instead of devpath

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
v1 Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
v1 Tested-by: Matt Hoosier <matt.hoosier@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
libweston/input.c