Merge branch 'foreign-toplevel-order' into 'master'

{wlr,ext}-foreign-toplevel: add new toplevels to end of list

See merge request wlroots/wlroots!5337
This commit is contained in:
Hiroaki Yamamoto 2026-04-12 04:04:48 +00:00
commit 63526f6efb
2 changed files with 2 additions and 2 deletions

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);

View file

@ -530,7 +530,7 @@ wlr_foreign_toplevel_handle_v1_create(
return NULL;
}
wl_list_insert(&manager->toplevels, &toplevel->link);
wl_list_insert(manager->toplevels.prev, &toplevel->link);
toplevel->manager = manager;
wl_list_init(&toplevel->resources);