vnc: improve capslock handling.
commit6b1325029d80455b9da7cd7bd84a88cb915b867c
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 2 Nov 2009 11:47:06 +0000 (2 12:47 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 12 Nov 2009 17:23:56 +0000 (12 11:23 -0600)
tree869ec237bbb21573aef59f736202d9e889f2d449
parenta00b2335282cad10ecc3e9c50030fb631f1c7d11
vnc: improve capslock handling.

When capslock is toggled while the vnc window hasn't the focus qemu
will miss the state change.  Add sanity checks for the capslock state
and toggle it if needed, so hosts and guests idea of capslock state
stay in sync.  Simliar logic for numlock is present in qemu already.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc.c