Commit bfefa6d7 authored by Jonathon Jongsma's avatar Jonathon Jongsma Committed by Gerd Hoffmann
Browse files

spice: Use proper enum type for kbd led state



Although the Qemu and spice flags currently have the same value, it
seems more correct to pass the spice flag values to
spice_server_kbd_leds(), especially considering that this function
already makes an effort to convert between the QEMU_*_LED and
SPICE_KEYBOARD_MODIFIER_* values.

Signed-off-by: default avatarJonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20170510202006.31737-1-jjongsma@redhat.com
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent af8862b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ static void kbd_leds(void *opaque, int ledstate)
    if (ledstate & QEMU_CAPS_LOCK_LED) {
        kbd->ledstate |= SPICE_KEYBOARD_MODIFIER_FLAGS_CAPS_LOCK;
    }
    spice_server_kbd_leds(&kbd->sin, ledstate);
    spice_server_kbd_leds(&kbd->sin, kbd->ledstate);
}

/* mouse bits */