]> git.ipfire.org Git - thirdparty/qemu.git/commit
gtk: Avoid accel key leakage into guest on console switch
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 26 Apr 2015 19:04:21 +0000 (21:04 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 27 Apr 2015 09:00:43 +0000 (11:00 +0200)
commit1a01716a307387e5cf1336f61a96f772dddadc90
tree5317c46979a89f3f1b7ea8d5f74a6208335b7b92
parent9d677e1c2fa479336fb7a2b90aea78c10d037e98
gtk: Avoid accel key leakage into guest on console switch

GTK2 sends the accel key to the guest when switching to the graphic
console via that shortcut. Resolve this by ignoring any keys until the
next key-release event. However, do not ignore keys when switching via
the menu or when on GTK3.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk.c