diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2016-08-29 15:14:55 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-09-02 09:10:57 +1000 |
commit | d686e13338522ce920a88dffb636facbb90658a5 (patch) | |
tree | 070f876c1eb84138e2263008ed500174b0f1ecd8 /udev | |
parent | 3ceb6aeb8ce0bce66a4d67fbe876674f359c3a61 (diff) |
tablet: if a serial comes in late, discard it
If a tool starts reporting with serial 0 and later updates to a real serial,
discard that serial and keep reporting as serial 0. We cannot really change
the tool after proximity in as we don't know when callers query for the serial
(well, we could know but any well-written caller will ask for the serial on
the proximity in event, so what's the point).
Thus if we do get a serial in and the matching tool, check if we have a tool
with the serial 0 already. If so, re-use that. This means we lose correct tool
tracking on such tablets but so far these seem to only be on devices where the
use of multiple tools is unlikely.
https://bugs.freedesktop.org/show_bug.cgi?id=97526
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
Diffstat (limited to 'udev')
0 files changed, 0 insertions, 0 deletions