diff options
author | Simon Ser <contact@emersion.fr> | 2020-04-14 15:01:57 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-04-14 16:05:58 +0200 |
commit | ab4dc1636ca044313b3ebc78bbf35e30d00a6986 (patch) | |
tree | 184d6753a7e2205fdae39a4018660cfd72087fda /backend | |
parent | f679895c77c235161f698071009b70ef7af39494 (diff) |
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.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/multi/backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/multi/backend.c b/backend/multi/backend.c index 50851109..7ba25ca8 100644 --- a/backend/multi/backend.c +++ b/backend/multi/backend.c @@ -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; |