Commit Graph

1 Commits

Author SHA1 Message Date
Benjamin Tissoires d010f78ac8 Input: deactivate MT slots when inhibiting or suspending devices
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2122844
Upstream Status: since v6.0
Tested: with the hid-tools test suite and some hardware

commit ebfa0043c96c7c7f645d0f96159bca988c873b6d
Author: Angela Czubak <acz@semihalf.com>
Date:   Wed Jul 20 11:15:28 2022 -0700

    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>

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
2023-01-09 15:11:47 +01:00