aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-23 23:56:05 +0100
committeremersion <contact@emersion.fr>2018-05-29 18:47:18 +0100
commit3f9796112ee2474bade668dede226b5e6f6144db (patch)
tree7da1a7bb1d5cae1178dcba2c14992e5f86f3bd56
parent00e108f2fcd0c41d361a45149ad6a310a0a4b85d (diff)
export-dmabuf: fix tv_sec_hi
-rw-r--r--types/wlr_export_dmabuf_v1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_export_dmabuf_v1.c b/types/wlr_export_dmabuf_v1.c
index 1b284c44..cbd54749 100644
--- a/types/wlr_export_dmabuf_v1.c
+++ b/types/wlr_export_dmabuf_v1.c
@@ -45,7 +45,7 @@ static void frame_output_handle_swap_buffers(struct wl_listener *listener,
wl_list_remove(&frame->output_swap_buffers.link);
wl_list_init(&frame->output_swap_buffers.link);
- uint32_t tv_sec_hi = event->when->tv_sec << 32;
+ uint32_t tv_sec_hi = event->when->tv_sec >> 32;
uint32_t tv_sec_lo = event->when->tv_sec & 0xFFFFFFFF;
zwlr_export_dmabuf_frame_v1_send_ready(frame->resource,
tv_sec_hi, tv_sec_lo, event->when->tv_nsec);