summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-01-30 16:41:57 -0600
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-02-23 23:00:46 +0100
commit47bcfaa13d85577c1184a8ef7125c9d7f07505f5 (patch)
tree6b153cdc416f91752f40de39c245d0792d7188d0
parentf228b5e6c038a5691f071d92827b5f87f326363d (diff)
downloadspice-47bcfaa13d85577c1184a8ef7125c9d7f07505f5.tar.gz
spice-47bcfaa13d85577c1184a8ef7125c9d7f07505f5.tar.xz
spice-47bcfaa13d85577c1184a8ef7125c9d7f07505f5.zip
Add RedsState arg to activate_modifiers_watch()
-rw-r--r--server/inputs-channel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/inputs-channel.c b/server/inputs-channel.c
index 5a6a4ed0..9bb3f80f 100644
--- a/server/inputs-channel.c
+++ b/server/inputs-channel.c
@@ -197,7 +197,7 @@ static void inputs_channel_release_msg_rcv_buf(RedChannelClient *rcc,
((state & SPICE_MOUSE_BUTTON_MASK_MIDDLE) ? VD_AGENT_MBUTTON_MASK : 0) | \
((state & SPICE_MOUSE_BUTTON_MASK_RIGHT) ? VD_AGENT_RBUTTON_MASK : 0))
-static void activate_modifiers_watch(void)
+static void activate_modifiers_watch(RedsState *reds)
{
reds_get_core_interface(reds)->timer_start(key_modifiers_timer, KEY_MODIFIERS_TTL);
}
@@ -317,7 +317,7 @@ static int inputs_channel_handle_parsed(RedChannelClient *rcc, uint32_t size, ui
if (key_down->code == CAPS_LOCK_SCAN_CODE ||
key_down->code == NUM_LOCK_SCAN_CODE ||
key_down->code == SCROLL_LOCK_SCAN_CODE) {
- activate_modifiers_watch();
+ activate_modifiers_watch(reds);
}
}
case SPICE_MSGC_INPUTS_KEY_UP: {
@@ -455,7 +455,7 @@ static int inputs_channel_handle_parsed(RedChannelClient *rcc, uint32_t size, ui
kbd_push_scan(keyboard, CAPS_LOCK_SCAN_CODE);
kbd_push_scan(keyboard, CAPS_LOCK_SCAN_CODE | 0x80);
}
- activate_modifiers_watch();
+ activate_modifiers_watch(reds);
break;
}
case SPICE_MSGC_DISCONNECTING: