]> git.ipfire.org Git - thirdparty/qemu.git/commit
ui/sdl2: reenable the SDL2 Windows keyboard hook procedure
authorVolker Rümelin <vr_qemu@t-online.de>
Tue, 31 Dec 2024 11:59:50 +0000 (12:59 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 13 Feb 2025 12:50:45 +0000 (13:50 +0100)
commit4dafba778aa3e5f5fd3b2c6333afd7650dcf54e2
treecad883d7dac5cb0216fe16f7fd5a987a0b48095a
parent16534af51bc0e9c3db94097ab37ebd3ed50e1c0f
ui/sdl2: reenable the SDL2 Windows keyboard hook procedure

Windows only:

The libSDL2 Windows message loop needs the libSDL2 Windows low
level keyboard hook procedure to grab the left and right Windows
keys correctly. Reenable the SDL2 Windows keyboard hook procedure.

Since SDL2 2.30.4 the SDL2 keyboard hook procedure also filters
out the special left Control key event for every Alt Gr key event
on keyboards with an international layout. This means the QEMU low
level keyboard hook procedure is no longer needed. Remove the QEMU
Windows keyboard hook procedure.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2139
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2323
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Link: https://lore.kernel.org/r/20241231115950.6732-1-vr_qemu@t-online.de
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
ui/meson.build
ui/sdl2.c