Commit 0a0f5b7e authored by Gabriele Mazzotta's avatar Gabriele Mazzotta Committed by Jiri Kosina

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: default avatarGabriele Mazzotta <gabriele.mzt@gmail.com>
Reviewed-by: default avatarBenson Leung <bleung@chromium.org>
Reviewed-by: default avatarBenjamin TIssoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 580549ef
...@@ -1169,6 +1169,7 @@ static void mt_release_contacts(struct hid_device *hid) ...@@ -1169,6 +1169,7 @@ static void mt_release_contacts(struct hid_device *hid)
MT_TOOL_FINGER, MT_TOOL_FINGER,
false); false);
} }
input_mt_sync_frame(input_dev);
input_sync(input_dev); input_sync(input_dev);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment