]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 16 Feb 2025 06:46:13 +0000 (09:46 +0300)
commit9d820b19b14d8cbef88763ee54ced8325431ba56
treecbc811422b626544533062b1fc99d3efe156580b
parent0f6b895992d00ec9794e72f9106d963033edc8f6
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>
(cherry picked from commit 4dafba778aa3e5f5fd3b2c6333afd7650dcf54e2)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: context fix in ui/sdl2.c and adaptation in ui/meson.build)
ui/meson.build
ui/sdl2.c