mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend/multi: add backends at end of list
This allows wlr_multi_for_each_backend to iterate on the backends in the order where they have been added.
This commit is contained in:
parent
f679895c77
commit
ab4dc1636c
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ bool wlr_multi_backend_add(struct wlr_backend *_multi,
|
|||
wlr_log(WLR_ERROR, "Could not add backend: allocation failed");
|
||||
return false;
|
||||
}
|
||||
wl_list_insert(&multi->backends, &sub->link);
|
||||
wl_list_insert(multi->backends.prev, &sub->link);
|
||||
|
||||
sub->backend = backend;
|
||||
sub->container = &multi->backend;
|
||||
|
|
Loading…
Reference in a new issue