]> git.ipfire.org Git - thirdparty/qemu.git/commit
sdl2: fix hotkey keyup
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 20 Feb 2018 15:04:44 +0000 (16:04 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 22 Feb 2018 09:34:50 +0000 (10:34 +0100)
commitafb92eb9852dbcdb5920e57179be20bcafab26a3
tree32b7469abca42e984d0e1ebb62025cca6fc4110a
parenta6e0344fa0e09413324835ae122c4cadd7890231
sdl2: fix hotkey keyup

After some hotkey was pressed sdl2 doesn't forward the first modifier
keyup event to the guest, resulting in stuck modifier keys.

Fix the logic in handle_keyup().  Also gui_key_modifier_pressed doesn't
need to be a global variable.

Reported-by: Howard Spoelstra <hsp.cat7@gmail.com>
Tested-by: Howard Spoelstra <hsp.cat7@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20180220150444.784-1-kraxel@redhat.com
ui/sdl2.c