aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-04-14 15:01:57 +0200
committerDrew DeVault <sir@cmpwn.com>2020-04-14 16:05:58 +0200
commitab4dc1636ca044313b3ebc78bbf35e30d00a6986 (patch)
tree184d6753a7e2205fdae39a4018660cfd72087fda
parentf679895c77c235161f698071009b70ef7af39494 (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.
-rw-r--r--backend/multi/backend.c2
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;