diff options
author | Mark Chang <changmark@google.com> | 2022-01-20 12:03:38 +0000 |
---|---|---|
committer | Mark Chang <changmark@google.com> | 2022-01-21 13:50:35 +0000 |
commit | 97b4261016dbeee347e2ec46dd46a345dd6da8ac (patch) | |
tree | ffad8cbd254c5820e04f8482c494480a04526a4d | |
parent | dc4cfb697ebdaa6545f11e03531607a03ab90bda (diff) | |
download | fts_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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |