mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
HID: multitouch: Synchronize MT frame on reset_resume
input_mt_get_slot_by_key() requires input_mt_sync_frame() to be called at each frame. Do it when releasing the touches, or else we won't get a proper slot number after mt_reset_resume(). Signed-off-by: Gabriele Mazzotta <[email protected]> Reviewed-by: Benson Leung <[email protected]> Reviewed-by: Benjamin TIssoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
580549ef6b
commit
0a0f5b7e5b
1 changed files with 1 additions and 0 deletions
|
|
@ -1169,6 +1169,7 @@ static void mt_release_contacts(struct hid_device *hid)
|
|||
MT_TOOL_FINGER,
|
||||
false);
|
||||
}
|
||||
input_mt_sync_frame(input_dev);
|
||||
input_sync(input_dev);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue