compositor: Embed the paint node status when rebuilding z-ordered list

As weston_compositor_build_view_list() marks all the outputs needing a
paint node rebuild of the re-order list, embed the paint node status
update to ALL_DRITY into straight into weston_output_build_z_order_list().

This way we'll latch it on the view list rebuild.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2025-11-19 15:56:54 +02:00
parent 881ac6a5cf
commit f85008bb86

View file

@ -3432,6 +3432,7 @@ weston_output_build_z_order_list(struct weston_compositor *compositor,
add_to_z_order_list(output, pnode);
}
output->paint_node_changes = WESTON_PAINT_NODE_ALL_DIRTY;
output->paint_node_list_needs_rebuild = false;
}
@ -3604,10 +3605,8 @@ weston_output_repaint(struct weston_output *output)
TL_POINT(ec, TLP_CORE_REPAINT_BEGIN, TLP_OUTPUT(output), TLP_END);
/* Rebuild the surface list and update surface transforms up front. */
if (ec->view_list_needs_rebuild) {
if (ec->view_list_needs_rebuild)
weston_compositor_build_view_list(ec);
output->paint_node_changes = WESTON_PAINT_NODE_ALL_DIRTY;
}
if (output->paint_node_list_needs_rebuild)
weston_output_build_z_order_list(ec, output);