summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Chang <changmark@google.com>2022-01-20 12:03:38 +0000
committerMark Chang <changmark@google.com>2022-01-21 13:50:35 +0000
commit97b4261016dbeee347e2ec46dd46a345dd6da8ac (patch)
treeffad8cbd254c5820e04f8482c494480a04526a4d
parentdc4cfb697ebdaa6545f11e03531607a03ab90bda (diff)
downloadfts_touch-97b4261016dbeee347e2ec46dd46a345dd6da8ac.tar.gz
touch: fts: Clear input directly when offload isn't running.android-12.1.0_r0.40android-gs-bluejay-5.10-android12L-d2
Bug: 215095137 Test: adb shell dmesg -w | grep fts Signed-off-by: Mark Chang <changmark@google.com> Change-Id: Ie745aafc7d7f5d1538dd6e3822b54a94b6fc1452
-rw-r--r--ftm5/fts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftm5/fts.c b/ftm5/fts.c
index 4507837..ca03e61 100644
--- a/ftm5/fts.c
+++ b/ftm5/fts.c
@@ -139,7 +139,7 @@ void release_all_touches(struct fts_ts_info *info)
/* If the previous coord_frame that was pushed to touch_offload had
* active coords (eg. there are fingers still on the screen), push an
* empty coord_frame to touch_offload for clearing coords in twoshay.*/
- if (info->touch_offload_active_coords) {
+ if (info->offload.offload_running && info->touch_offload_active_coords) {
for (i = 0; i < TOUCH_ID_MAX; i++) {
info->offload.coords[i].status = COORD_STATUS_INACTIVE;
}