diff options
author | Super Liu <supercjliu@google.com> | 2020-09-09 15:53:13 +0800 |
---|---|---|
committer | Steve Pfetsch <spfetsch@google.com> | 2020-09-12 01:07:45 +0000 |
commit | dc9662a7ce0db7a9e1f8884008f9968e7f825ff1 (patch) | |
tree | a2f965deeb45d3adc27e5bf3c9a2510b34fe2069 | |
parent | a28c78c2ecb09ad1d1e5bb0045c2c649dcce423c (diff) | |
download | fts_touch-dc9662a7ce0db7a9e1f8884008f9968e7f825ff1.tar.gz |
fts: release all fingers for offload case
Bug: 167758661
Change-Id: I93005492bc203d19bff3191f2e0c63221d5f0ffb
Signed-off-by: Super Liu <supercjliu@google.com>
(cherry picked from commit 3ffa2f46ca37a9ecd74e8dcc24b7d7ed33baee25)
-rw-r--r-- | fts.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -174,6 +174,9 @@ void release_all_touches(struct fts_ts_info *info) input_report_abs(info->input_dev, ABS_MT_PRESSURE, 0); input_mt_report_slot_state(info->input_dev, type, 0); input_report_abs(info->input_dev, ABS_MT_TRACKING_ID, -1); +#if IS_ENABLED(CONFIG_TOUCHSCREEN_OFFLOAD) + info->offload.coords[i].status = COORD_STATUS_INACTIVE; +#endif } input_report_key(info->input_dev, BTN_TOUCH, 0); input_sync(info->input_dev); |