mbox series

[v2,00/11] Patches for ui/gtk and ui/sdl

Message ID bea1a22a-1fb4-b49b-c089-e0a5c5cf55cd@t-online.de
Headers show
Series Patches for ui/gtk and ui/sdl | expand

Message

Volker Rümelin May 16, 2020, 7:18 a.m. UTC
It's rather difficult to test qemu patches in guests on Windows with important keys missing. These patches mainly fix the guest keyboard on Windows.

With best regards,
Volker

v2:
- ui/win32-kbd-hook: handle AltGr in a hook procedure
  The boilerplate now mentions where the code comes from.
  Stub functions added for non Windows platforms.

- ui/gtk: fix handling of AltGr key on Windows
- ui/sdl2: fix handling of AltGr key on Windows
  Nearly all #ifdefs were removed.

- ui/gkt: release all keys on grab-broken-event
  Comment added.

- ui/gtk: remove unused variable ignore_keys
- ui/sdl2: start in full screen with grab enabled
- ui/gtk: don't pass on win keys without keyboard grab
  Improved commit message.

- ui: increase min required GTK version to 3.22.0
  New patch. Slightly different compared to Daniel's suggestion.

Volker Rümelin (11):
  ui/win32-kbd-hook: handle AltGr in a hook procedure
  ui/gtk: fix handling of AltGr key on Windows
  ui/gkt: release all keys on grab-broken-event
  ui/gtk: remove unused code
  ui/gtk: remove unused variable ignore_keys
  ui/sdl2: fix handling of AltGr key on Windows
  ui/sdl2: start in full screen with grab enabled
  ui/sdl2-input: use trace-events to debug key events
  ui/gtk: don't pass on win keys without keyboard grab
  ui/gtk: use native keyboard scancodes on Windows
  ui: increase min required GTK version to 3.22.0

 configure                   |   2 +-
 include/ui/win32-kbd-hook.h |  14 +++
 stubs/Makefile.objs         |   1 +
 stubs/win32-kbd-hook.c      |  18 ++++
 ui/Makefile.objs            |   3 +
 ui/gtk.c                    | 194 +++++++++++++++++-------------------
 ui/sdl2-input.c             |   3 +
 ui/sdl2.c                   |  33 +++++-
 ui/trace-events             |   3 +
 ui/win32-kbd-hook.c         | 102 +++++++++++++++++++
 10 files changed, 264 insertions(+), 109 deletions(-)
 create mode 100644 include/ui/win32-kbd-hook.h
 create mode 100644 stubs/win32-kbd-hook.c
 create mode 100644 ui/win32-kbd-hook.c