aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_export_dmabuf_v1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/types/wlr_export_dmabuf_v1.c b/types/wlr_export_dmabuf_v1.c
index 3f17cc8b..c2ec34c8 100644
--- a/types/wlr_export_dmabuf_v1.c
+++ b/types/wlr_export_dmabuf_v1.c
@@ -98,7 +98,6 @@ static void manager_handle_capture_output(struct wl_client *client,
return;
}
frame->manager = manager;
- frame->output = output;
wl_list_init(&frame->output_precommit.link);
uint32_t version = wl_resource_get_version(manager_resource);
@@ -129,6 +128,8 @@ static void manager_handle_capture_output(struct wl_client *client,
return;
}
+ frame->output = output;
+
wlr_output_lock_attach_render(frame->output, true);
if (overlay_cursor) {
wlr_output_lock_software_cursors(frame->output, true);