mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
util/addon: find both by owner and impl
This allows to have multiple addons of different types with the same owner.
This commit is contained in:
parent
debd6c5f0b
commit
111d4eafd7
3 changed files with 11 additions and 13 deletions
|
|
@ -225,7 +225,7 @@ struct wlr_output_layout_output *wlr_output_layout_get(
|
|||
struct wlr_output_layout *layout, struct wlr_output *reference) {
|
||||
struct wlr_output_layout_output *l_output = NULL;
|
||||
struct wlr_addon *addon =
|
||||
wlr_addon_find_by_owner(&reference->addons, layout);
|
||||
wlr_addon_find(&reference->addons, layout, &addon_impl);
|
||||
if (addon) {
|
||||
l_output = wl_container_of(addon, l_output, addon);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue