mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
export-dmabuf: export DMA-BUF on output commit
We were previously exporting DMA-BUFs when receiving the capture_output request, and sending a done event on wlr_output.events.precommit. Instead, export and send done on wlr_output.events.commit.
This commit is contained in:
parent
8c8164c4a6
commit
f0945e112f
2 changed files with 35 additions and 37 deletions
|
|
@ -29,12 +29,11 @@ struct wlr_export_dmabuf_frame_v1 {
|
|||
struct wlr_export_dmabuf_manager_v1 *manager;
|
||||
struct wl_list link; // wlr_export_dmabuf_manager_v1::frames
|
||||
|
||||
struct wlr_dmabuf_attributes attribs;
|
||||
struct wlr_output *output;
|
||||
|
||||
bool cursor_locked;
|
||||
|
||||
struct wl_listener output_precommit;
|
||||
struct wl_listener output_commit;
|
||||
};
|
||||
|
||||
struct wlr_export_dmabuf_manager_v1 *wlr_export_dmabuf_manager_v1_create(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue