]> git.proxmox.com Git - mirror_qemu.git/commit - ui/vnc.c
kbd keds: vnc
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 26 Feb 2010 16:17:39 +0000 (17:17 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 9 Mar 2010 14:47:27 +0000 (08:47 -0600)
commit7ffb82ca6e13feeb37b86a8223da691eff5ee922
tree8115121a288e7e5fefe74a1e5c95d702b1cc5948
parentbd87813e8c3adfa1c12f763b35b2dbacc7796f0d
kbd keds: vnc

Use led status notification support in vnc.

The qemu vnc server keeps track of the capslock and numlock states based
on the key presses it receives from the vnc client.  But this fails in
case the guests idea of the capslock and numlock state changes for other
reasons.  One case is guest reboot (+ keyboard reset).  Another case are
more recent windows versions which reset capslock state before
presenting the login screen.

Usually guests use the keyboard leds to signal the capslock and numlock
state to the user, so we can use this to better keep track of capslock
and numlock state in the qemu vnc server.

Also toggle the numlock and capslock states on keydown events (instead
of keyup).  Guests do the same.

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