diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-15 19:00:42 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-06-11 13:23:39 -0400 |
| commit | c258e84b180d38f76ab9962cf5bfc10720af1360 (patch) | |
| tree | 2ca727357b17b22807e85c0c8ccfc692f1a1ed84 | |
| parent | bf6247a70f2b7569180304041b63b59ab14217bc (diff) | |
Input: do not assign new tracking ID when changing tool type
We allow changing tool type (from MT_TOOL_FINGER to MT_TOOL_PALM) so we
should not be forcing new tracking ID for the slot.
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
| -rw-r--r-- | drivers/input/input-mt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c index 8de52e3c00c0..4a69716e5461 100644 --- a/drivers/input/input-mt.c +++ b/drivers/input/input-mt.c | |||
| @@ -153,7 +153,7 @@ bool input_mt_report_slot_state(struct input_dev *dev, | |||
| 153 | } | 153 | } |
| 154 | 154 | ||
| 155 | id = input_mt_get_value(slot, ABS_MT_TRACKING_ID); | 155 | id = input_mt_get_value(slot, ABS_MT_TRACKING_ID); |
| 156 | if (id < 0 || input_mt_get_value(slot, ABS_MT_TOOL_TYPE) != tool_type) | 156 | if (id < 0) |
| 157 | id = input_mt_new_trkid(mt); | 157 | id = input_mt_new_trkid(mt); |
| 158 | 158 | ||
| 159 | input_event(dev, EV_ABS, ABS_MT_TRACKING_ID, id); | 159 | input_event(dev, EV_ABS, ABS_MT_TRACKING_ID, id); |
