diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2017-05-10 15:20:06 -0500 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-06-14 09:51:45 +0200 |
commit | bfefa6d7d6e930429ac3a7ff3347c9c67f069289 (patch) | |
tree | 8b34ebbc8b3338d4e6f011f00aac072861175c4d /ui | |
parent | af8862b2a2445d0110f3b3125c1a41fbb5934123 (diff) |
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: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20170510202006.31737-1-jjongsma@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/spice-input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/spice-input.c b/ui/spice-input.c index 86293dd2ce..918580239d 100644 --- a/ui/spice-input.c +++ b/ui/spice-input.c @@ -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 */ |