wlr_ext_workspace_v1.c: add new workspaces to end of list

...so that panels/bars like xfce4-panel and waybar show workspaces in the
right order.
This commit is contained in:
Johan Malm 2026-04-11 13:40:22 +01:00 committed by Simon Ser
parent 8dd1a77615
commit e8c03e9ce9

View file

@ -790,7 +790,7 @@ struct wlr_ext_workspace_handle_v1 *wlr_ext_workspace_handle_v1_create(
wl_array_init(&workspace->coordinates); wl_array_init(&workspace->coordinates);
wl_signal_init(&workspace->events.destroy); wl_signal_init(&workspace->events.destroy);
wl_list_insert(&manager->workspaces, &workspace->link); wl_list_insert(manager->workspaces.prev, &workspace->link);
struct wlr_ext_workspace_manager_v1_resource *manager_res; struct wlr_ext_workspace_manager_v1_resource *manager_res;
wl_list_for_each(manager_res, &manager->resources, link) { wl_list_for_each(manager_res, &manager->resources, link) {