mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-07 04:34:31 -05:00
image_capture_source: wlr_output_try_from_ext_image_capture_source_v1()
This commit is contained in:
parent
3b9f599cbe
commit
49576469ec
2 changed files with 18 additions and 0 deletions
|
|
@ -392,3 +392,13 @@ static void output_cursor_source_finish(struct output_cursor_source *cursor_sour
|
|||
wl_list_remove(&cursor_source->output_commit.link);
|
||||
wl_list_remove(&cursor_source->prev_buffer_release.link);
|
||||
}
|
||||
|
||||
struct wlr_output *wlr_output_try_from_ext_image_capture_source_v1(struct wlr_ext_image_capture_source_v1 *source) {
|
||||
if (source->impl == &output_source_impl) {
|
||||
struct wlr_ext_output_image_capture_source_v1 *output_source =
|
||||
(struct wlr_ext_output_image_capture_source_v1*)source;
|
||||
return output_source->output;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue