ext-foreign-toplevel-list: add new toplevels to end of list

Same as the prior patch for wlr-foreign-toplevel-management.
This commit is contained in:
tokyo4j 2026-04-12 00:22:32 +09:00
parent 84b45e4157
commit 8dd1a77615

View file

@ -168,7 +168,7 @@ wlr_ext_foreign_toplevel_handle_v1_create(struct wlr_ext_foreign_toplevel_list_v
return NULL;
}
wl_list_insert(&list->toplevels, &toplevel->link);
wl_list_insert(list->toplevels.prev, &toplevel->link);
toplevel->list = list;
if (state->app_id) {
toplevel->app_id = strdup(state->app_id);