aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/screencopy.c5
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) {