diff mbox series

Input: MT - add input sync to refresh touch points after screen locked

Message ID 20250427021203.1888063-1-aichao@kylinos.cn
State New
Headers show
Series Input: MT - add input sync to refresh touch points after screen locked | expand

Commit Message

Ai Chao April 27, 2025, 2:12 a.m. UTC
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@kylinos.cn>
---
 drivers/input/input-mt.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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;
 	}