Files
twx-linux/drivers/hid
José Expósito 90433e5815 HID: magicmouse: Do not set BTN_MOUSE on double report
[ Upstream commit bb5f0c855d ]

Under certain conditions the Magic Trackpad can group 2 reports in a
single packet. The packet is split and the raw event function is
invoked recursively for each part.

However, after processing each part, the BTN_MOUSE status is updated,
sending multiple click events. [1]

Return after processing double reports to avoid this issue.

Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/811  # [1]
Fixes: a462230e16 ("HID: magicmouse: enable Magic Trackpad support")
Reported-by: Nulo <git@nulo.in>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20221009182747.90730-1-jose.exposito89@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-29 10:08:32 +02:00
..
…
2022-08-25 11:46:55 +02:00
…
2022-07-21 13:47:12 +02:00
…
…
…
…
…
2022-02-02 15:12:22 +01:00
2021-12-02 15:36:18 +01:00
2022-02-25 09:36:06 +01:00