[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250427021203.1888063-1-aichao@kylinos.cn>
Date: Sun, 27 Apr 2025 10:12:03 +0800
From: Ai Chao <aichao@...inos.cn>
To: rydberg@...math.org,
dmitry.torokhov@...il.com
Cc: linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org,
Ai Chao <aichao@...inos.cn>
Subject: [PATCH] Input: MT - add input sync to refresh touch points after screen locked
If the touchscreen support ten-figers press it to lock touchscreen. When
the touchscreen is locked, the ABS_MT_TRACKING_ID event remains
buffered. We need to used input-sync to refresh the event buffer.
Signed-off-by: Ai Chao <aichao@...inos.cn>
---
drivers/input/input-mt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c
index 337006dd9dcf..659d752ca830 100644
--- a/drivers/input/input-mt.c
+++ b/drivers/input/input-mt.c
@@ -147,6 +147,7 @@ bool input_mt_report_slot_state(struct input_dev *dev,
if (!active) {
input_event(dev, EV_ABS, ABS_MT_TRACKING_ID, -1);
+ input_sync(dev);
return false;
}
--
2.47.1
Powered by blists - more mailing lists