mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 14:45:58 +01:00
export-dmabuf-v1: stop using wlr_output_export_dmabuf
This commit is contained in:
parent
e326b76959
commit
f20c49d78a
1 changed files with 1 additions and 3 deletions
|
@ -66,7 +66,7 @@ static void frame_output_handle_commit(struct wl_listener *listener,
|
||||||
wl_list_init(&frame->output_commit.link);
|
wl_list_init(&frame->output_commit.link);
|
||||||
|
|
||||||
struct wlr_dmabuf_attributes attribs = {0};
|
struct wlr_dmabuf_attributes attribs = {0};
|
||||||
if (!wlr_output_export_dmabuf(frame->output, &attribs)) {
|
if (!wlr_buffer_get_dmabuf(frame->output->front_buffer, &attribs)) {
|
||||||
zwlr_export_dmabuf_frame_v1_send_cancel(frame->resource,
|
zwlr_export_dmabuf_frame_v1_send_cancel(frame->resource,
|
||||||
ZWLR_EXPORT_DMABUF_FRAME_V1_CANCEL_REASON_TEMPORARY);
|
ZWLR_EXPORT_DMABUF_FRAME_V1_CANCEL_REASON_TEMPORARY);
|
||||||
frame_destroy(frame);
|
frame_destroy(frame);
|
||||||
|
@ -86,8 +86,6 @@ static void frame_output_handle_commit(struct wl_listener *listener,
|
||||||
attribs.fd[i], size, attribs.offset[i], attribs.stride[i], i);
|
attribs.fd[i], size, attribs.offset[i], attribs.stride[i], i);
|
||||||
}
|
}
|
||||||
|
|
||||||
wlr_dmabuf_attributes_finish(&attribs);
|
|
||||||
|
|
||||||
time_t tv_sec = event->when->tv_sec;
|
time_t tv_sec = event->when->tv_sec;
|
||||||
uint32_t tv_sec_hi = (sizeof(tv_sec) > 4) ? tv_sec >> 32 : 0;
|
uint32_t tv_sec_hi = (sizeof(tv_sec) > 4) ? tv_sec >> 32 : 0;
|
||||||
uint32_t tv_sec_lo = tv_sec & 0xFFFFFFFF;
|
uint32_t tv_sec_lo = tv_sec & 0xFFFFFFFF;
|
||||||
|
|
Loading…
Reference in a new issue