input: touchscreen: fts_spi: Ignore fod down gestures in resumed state

Change-Id: I5c27194633ab37ce87e99a087b5f668a6b7d1096
This commit is contained in:
Arian 2024-10-14 23:11:03 +02:00 committed by Jens Reidel
parent bc12178b79
commit 1d925035ec
No known key found for this signature in database
GPG Key ID: 23C1E5F512C12303

View File

@ -4415,7 +4415,8 @@ static void fts_gesture_event_handler(struct fts_ts_info *info,
needCoords = 1;
#ifdef FTS_FOD_AREA_REPORT
if (event[2] == GEST_ID_LONG_PRESS) {
if (!info->fod_pressed && fts_is_in_fodarea(x, y)) {
// Ignore fod down events when screen is resumed since userspace handles fod then
if (!info->resume_bit && !info->fod_pressed && fts_is_in_fodarea(x, y)) {
logError(1, "%s %s Fod Down\n", tag, __func__);
info->fod_pressed = true;
update_fod_press_status(1);