mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
export-dmabuf: fix tv_sec_hi
This commit is contained in:
parent
00e108f2fc
commit
3f9796112e
1 changed files with 1 additions and 1 deletions
|
@ -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_remove(&frame->output_swap_buffers.link);
|
||||||
wl_list_init(&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;
|
uint32_t tv_sec_lo = event->when->tv_sec & 0xFFFFFFFF;
|
||||||
zwlr_export_dmabuf_frame_v1_send_ready(frame->resource,
|
zwlr_export_dmabuf_frame_v1_send_ready(frame->resource,
|
||||||
tv_sec_hi, tv_sec_lo, event->when->tv_nsec);
|
tv_sec_hi, tv_sec_lo, event->when->tv_nsec);
|
||||||
|
|
Loading…
Reference in a new issue