Merge branch 'wlr_mirror_v1' into 'master'

wlr_mirror: adds mirroring of variable source on a single destination output

See merge request wlroots/wlroots!3421
This commit is contained in:
Alexander Courtis 2023-02-20 00:19:41 +00:00
commit abbe353ae8
7 changed files with 1170 additions and 0 deletions

View file

@ -52,3 +52,16 @@ struct wlr_addon *wlr_addon_find(struct wlr_addon_set *set, const void *owner,
}
return NULL;
}
void wlr_addon_find_all(struct wl_array *all, struct wlr_addon_set *set,
const struct wlr_addon_interface *impl) {
wl_array_init(all);
struct wlr_addon *addon;
wl_list_for_each(addon, &set->addons, link) {
if (addon->impl == impl) {
struct wlr_addon **addon_ptr = wl_array_add(all, sizeof(addon_ptr));
*addon_ptr = addon;
}
}
}