summaryrefslogtreecommitdiff
path: root/libweston/compositor-rdp.c
diff options
context:
space:
mode:
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>2017-11-16 18:20:57 +0200
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2017-11-27 11:42:07 +0200
commit47e79c860b3bd90de757230ff7db4822d95b9113 (patch)
treeae8f20b42c0e0f888ba36ddda8ced46e53463440 /libweston/compositor-rdp.c
parent80321942e769f89e76f5372d4283aaad8fb4bd9e (diff)
libweston: Use struct timespec for key events
Change code related to key events to use struct timespec to represent time. This commit is part of a larger effort to transition the Weston codebase to struct timespec. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'libweston/compositor-rdp.c')
-rw-r--r--libweston/compositor-rdp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libweston/compositor-rdp.c b/libweston/compositor-rdp.c
index 05e11ee8..3b984e41 100644
--- a/libweston/compositor-rdp.c
+++ b/libweston/compositor-rdp.c
@@ -1135,6 +1135,7 @@ xf_input_keyboard_event(rdpInput *input, UINT16 flags, UINT16 code)
enum wl_keyboard_key_state keyState;
RdpPeerContext *peerContext = (RdpPeerContext *)input->context;
int notify = 0;
+ struct timespec time;
if (!(peerContext->item.flags & RDP_PEER_ACTIVATED))
FREERDP_CB_RETURN(TRUE);
@@ -1160,7 +1161,8 @@ xf_input_keyboard_event(rdpInput *input, UINT16 flags, UINT16 code)
/*weston_log("code=%x ext=%d vk_code=%x scan_code=%x\n", code, (flags & KBD_FLAGS_EXTENDED) ? 1 : 0,
vk_code, scan_code);*/
- notify_key(peerContext->item.seat, weston_compositor_get_time(),
+ timespec_from_msec(&time, weston_compositor_get_time());
+ notify_key(peerContext->item.seat, &time,
scan_code - 8, keyState, STATE_UPDATE_AUTOMATIC);
}