mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-31 00:50:14 +01:00
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:
parent
051f0ac7d9
commit
fb7b3e2880
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue