]> git.proxmox.com Git - qemu.git/commit
vnc: lift modifier keys on client disconnect.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 8 Feb 2012 12:18:37 +0000 (13:18 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 10 Feb 2012 08:58:33 +0000 (09:58 +0100)
commit7bc9318bfb68b2d773449a55d4fa800d0fdb0918
tree49b9e5f1878b8b3ee822e70c9e37731ea3953eac
parent8cf364898cfe4ae761f2253e91a040633d6f87be
vnc: lift modifier keys on client disconnect.

For any modifier key (shift, ctrl, alt) still pressed on disconnect
inject a key-up event into the guest.  The vnc client is gone, it will
not do that, so qemu has to do it instead.

Without this keys will get stuck, making the guest act in weird ways
after reconnecting.  Reproducer: exit vnc client via Alt-F4, guest
continues to see the pressed alt key and will not react to key events
in any useful way until you tap the alt key once to unstuck it.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c