compositor: Make subsurface state application order consistent

We have several places where we apply surface state, then walk the
subsurface list.

In surface_commit() however, we walk the list first then apply state.

Re-order surface_commit() so it's the same as the other sites.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2025-09-04 10:48:03 -05:00
parent 051f0ac7d9
commit fb7b3e2880

View file

@ -5152,12 +5152,11 @@ surface_commit(struct wl_client *client, struct wl_resource *resource)
if (sub) {
status = weston_subsurface_commit(sub);
} else {
status = WESTON_SURFACE_CLEAN;
status = weston_surface_commit(surface);
wl_list_for_each(sub, &surface->subsurface_list, parent_link) {
if (sub->surface != surface)
status |= weston_subsurface_parent_apply(sub);
}
status |= weston_surface_commit(surface);
}
if (status & WESTON_SURFACE_DIRTY_SUBSURFACE_CONFIG)