]> git.proxmox.com Git - mirror_qemu.git/commit
hid: Reset kbd modifiers on reset
authorAlexander Graf <agraf@suse.de>
Thu, 22 Jun 2017 07:41:35 +0000 (09:41 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 24 Aug 2017 21:59:22 +0000 (16:59 -0500)
commit0060a3e93632c3930ac010f4a576a6673f7dcef4
tree644675c6a23e152de364b791d22d556a60522a1f
parente0398ccdf42e5a54c62ae617d374b5df9684ac0d
hid: Reset kbd modifiers on reset

When resetting the keyboard, we need to reset not just the pending keystrokes,
but also any pending modifiers. Otherwise there's a race when we're getting
reset while running an escape sequence (modifier 0x100).

Cc: qemu-stable@nongnu.org
Signed-off-by: Alexander Graf <agraf@suse.de>
Message-id: 1498117295-162030-1-git-send-email-agraf@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 51dbea77a29ea46173373a6dad4ebd95d4661f42)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/input/hid.c