diff mbox

[2/2] vnc: sync lock modifier state on connect.

Message ID 1273223691-7657-2-git-send-email-kraxel@redhat.com
State New
Headers show

Commit Message

Gerd Hoffmann May 7, 2010, 9:14 a.m. UTC
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 vnc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/vnc.c b/vnc.c
index e497c70..69f3816 100644
--- a/vnc.c
+++ b/vnc.c
@@ -2238,6 +2238,7 @@  static void vnc_connect(VncDisplay *vd, int csock)
     if (vs->vd->lock_key_sync) {
         vs->led_notifier.notify = kbd_leds;
         qemu_add_led_event_notifier(&vs->led_notifier);
+        kbd_leds(&vs->led_notifier);
     }
 
     vs->mouse_mode_notifier.notify = check_pointer_type_change;