libweston: Implement keyboard timestamps for input_timestamps_unstable_v1
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Tue, 20 Feb 2018 12:05:50 +0000 (14:05 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 20 Feb 2018 13:09:53 +0000 (15:09 +0200)
commit2b44248f606727813995561eeeb3d1a69dfd0715
tree1c156195f238fb79618c6dcbe030a39897ffa6a7
parent538749de7b7a3229d798a99bc4a78d1d8bc17bdf
libweston: Implement keyboard timestamps for input_timestamps_unstable_v1

Implement the zwp_input_timestamps_manager_v1.get_keyboard_timestamps
request to subscribe to timestamp events for wl_keyboard resources.
Ensure that the request handling code can gracefully handle inert
keyboard resources.

This commit introduces a few internal helper functions which will also
be useful in the implementation of the remaining
zwp_input_timestamps_manager_v1 requests.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
libweston/compositor.h
libweston/input.c
tests/keyboard-test.c