mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-04 04:06:09 -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
|
|
@ -131,4 +131,12 @@ struct wlr_ext_image_capture_source_v1 *wlr_ext_image_capture_source_v1_create_w
|
|||
struct wlr_scene_node *node, struct wl_event_loop *event_loop,
|
||||
struct wlr_allocator *allocator, struct wlr_renderer *renderer);
|
||||
|
||||
/**
|
||||
* Returns the corresponding wlr_output for a image capture source
|
||||
* managed by wlr_ext_output_image_capture_source_manager_v1
|
||||
* or NULL if the image capture source is not managed by
|
||||
* wlr_ext_output_image_capture_source_manager_v1.
|
||||
*/
|
||||
struct wlr_output *wlr_output_try_from_ext_image_capture_source_v1(struct wlr_ext_image_capture_source_v1 *source);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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