]> git.baikalelectronics.ru Git - kernel.git/commit
Input: deactivate MT slots when inhibiting or suspending devices
authorAngela Czubak <acz@semihalf.com>
Wed, 20 Jul 2022 18:15:28 +0000 (11:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 20 Jul 2022 18:35:13 +0000 (11:35 -0700)
commit801f0bc556606c59813f2bb3099dc0118d15e9f4
tree3324cb5f82a20050a790bdb42f78438a4e50093b
parent26d995f43b4368fedfe50343740895096049b6a6
Input: deactivate MT slots when inhibiting or suspending devices

When inhibiting or suspending a device we are sending release events for
all currently held keys and buttons, however we retain active MT slot
state, which causes issues with gesture recognition when we resume or
uninhibit.

Let's fix it by introducing, in addition to input_dev_release_keys(),
nput_mt_release_slots() that will deactivate all currently active slots.

Signed-off-by: Angela Czubak <acz@semihalf.com>
Link: https://lore.kernel.org/r/20220718151715.1052842-3-acz@semihalf.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input-core-private.h [new file with mode: 0644]
drivers/input/input-mt.c
drivers/input/input.c