summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2020-09-09 15:53:13 +0800
committerSteve Pfetsch <spfetsch@google.com>2020-09-12 01:07:45 +0000
commitdc9662a7ce0db7a9e1f8884008f9968e7f825ff1 (patch)
treea2f965deeb45d3adc27e5bf3c9a2510b34fe2069
parenta28c78c2ecb09ad1d1e5bb0045c2c649dcce423c (diff)
downloadfts_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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fts.c b/fts.c
index 8629758..a601334 100644
--- a/fts.c
+++ b/fts.c
@@ -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);