aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-12-03 11:10:05 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-12-03 14:56:17 +0000
commit60b7267e1846b1bce39d30e73abe817faaa8fcff (patch)
treef11cecbc9b97fc1d6bce85b831737ba7be9f04df
parentf016eca97cf046c5273c5112201588d4fdca9818 (diff)
export-dmabuf-v1: use wlr_output_event_commit.buffer
-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 d26a9a45..b47758c6 100644
--- a/types/wlr_export_dmabuf_v1.c
+++ b/types/wlr_export_dmabuf_v1.c
@@ -66,7 +66,7 @@ static void frame_output_handle_commit(struct wl_listener *listener,
wl_list_init(&frame->output_commit.link);
struct wlr_dmabuf_attributes attribs = {0};
- if (!wlr_buffer_get_dmabuf(frame->output->front_buffer, &attribs)) {
+ if (!wlr_buffer_get_dmabuf(event->buffer, &attribs)) {
zwlr_export_dmabuf_frame_v1_send_cancel(frame->resource,
ZWLR_EXPORT_DMABUF_FRAME_V1_CANCEL_REASON_TEMPORARY);
frame_destroy(frame);