diff options
author | emersion <contact@emersion.fr> | 2018-06-22 22:31:33 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-06-30 22:18:03 +0100 |
commit | bd8be19b792797925f5cca14049a5ab2d0f6d06c (patch) | |
tree | 8aca19c6cb99b38c80076116cf18c4ad4b4e2334 /examples | |
parent | 73755ad348657fdf8d9e0f9a48ee13a2ab947e35 (diff) |
screencopy: add presentation timestamp
Diffstat (limited to 'examples')
-rw-r--r-- | examples/screencopy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/screencopy.c b/examples/screencopy.c index 98df09b5..8b064a15 100644 --- a/examples/screencopy.c +++ b/examples/screencopy.c @@ -113,7 +113,8 @@ static void frame_handle_buffer(void *data, } static void frame_handle_ready(void *data, - struct zwlr_screencopy_frame_v1 *frame) { + struct zwlr_screencopy_frame_v1 *frame, uint32_t tv_sec_hi, + uint32_t tv_sec_lo, uint32_t tv_nsec) { buffer_copy_done = true; } @@ -217,7 +218,7 @@ int main(int argc, char *argv[]) { } struct zwlr_screencopy_frame_v1 *frame = - zwlr_screencopy_manager_v1_capture_output(screencopy_manager, output); + zwlr_screencopy_manager_v1_capture_output(screencopy_manager, 0, output); zwlr_screencopy_frame_v1_add_listener(frame, &frame_listener, NULL); while (!buffer_copy_done) { |