compositor: commit subsurfaces before the main surface

The main surface commit includes the xdg surface commit. Here, the
accumulated surface size is validated. All subsurfaces must be comitted
first to ensure that the corrent current values are used.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
This commit is contained in:
Michael Olbrich 2022-10-11 14:38:03 +02:00 committed by Pekka Paalanen
parent 212c666ab5
commit a943e5e70e

View File

@ -4129,12 +4129,12 @@ surface_commit(struct wl_client *client, struct wl_resource *resource)
return;
}
weston_surface_commit(surface);
wl_list_for_each(sub, &surface->subsurface_list, parent_link) {
if (sub->surface != surface)
weston_subsurface_parent_commit(sub, 0);
}
weston_surface_commit(surface);
}
static void