summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Chan <int64ago@gmail.com>2014-08-13 16:45:12 +0800
committerChristophe Fergeau <cfergeau@redhat.com>2014-08-13 17:21:34 +0200
commit214bfa5fb8a3204956f3eb222e5f945b19f985d0 (patch)
tree8d40a2f65dd28cd22804baf8e6d1ae879194af9d
parent3dd553f598147d8f7edd18786b10ae6e3203de98 (diff)
keyboard: wrong defined macro for WIN32
On windows client, there's no effect for guest when enabling CAPS_LOCK/NUM_LOCK/SCROLL_LOCK on (because of the delay, guest may take the effect for several seconds). There's a wrong defined macro, then <modifiers> is ALWAYS 0, and the keyboard state of guest is synchronized with the state client by spice_gtk_session_sync_keyboard_modifiers_for_channel(...).
-rw-r--r--gtk/spice-gtk-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/spice-gtk-session.c b/gtk/spice-gtk-session.c
index 84a83a2..abd39c7 100644
--- a/gtk/spice-gtk-session.c
+++ b/gtk/spice-gtk-session.c
@@ -140,7 +140,7 @@ static guint32 get_keyboard_lock_modifiers(void)
if (keyboard_state.led_mask & 0x04) {
modifiers |= SPICE_INPUTS_SCROLL_LOCK;
}
-#elif defined(win32)
+#elif defined(WIN32)
if (GetKeyState(VK_CAPITAL) & 1) {
modifiers |= SPICE_INPUTS_CAPS_LOCK;
}