libweston: comment places that cannot use paint node lists

These are all the remaining places that still use the global view_list,
and cannot avoid it. Add a comment to explain why in each.

Now all places that use view_list have been audited for paint node
lists.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
diff --git a/libweston/compositor.c b/libweston/compositor.c
index 01ce03c..dc6ecb2 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -2150,6 +2150,7 @@
 	int ix = wl_fixed_to_int(x);
 	int iy = wl_fixed_to_int(y);
 
+	/* Can't use paint node list: occlusion by input regions, not opaque. */
 	wl_list_for_each(view, &compositor->view_list, link) {
 		if (!pixman_region32_contains_point(
 				&view->transform.boundingbox, ix, iy, NULL))
@@ -5041,6 +5042,10 @@
 	pixman_region32_fini(&plane->damage);
 	pixman_region32_fini(&plane->clip);
 
+	/*
+	 * Can't use paint node list here, weston_plane is not specific to an
+	 * output.
+	 */
 	wl_list_for_each(view, &plane->compositor->view_list, link) {
 		if (view->plane == plane)
 			view->plane = NULL;
@@ -6184,6 +6189,10 @@
 
 	wl_signal_emit(&compositor->output_created_signal, output);
 
+	/*
+	 * Use view_list, as paint nodes have not been created for this
+	 * output yet. Any existing view might touch this new output.
+	 */
 	wl_list_for_each_safe(view, next, &compositor->view_list, link)
 		weston_view_geometry_dirty(view);
 }
@@ -6266,6 +6275,10 @@
 	}
 	assert(wl_list_empty(&output->paint_node_z_order_list));
 
+	/*
+	 * Use view_list in case the output did not go through repaint
+	 * after a view came on it, lacking a paint node. Just to be sure.
+	 */
 	wl_list_for_each(view, &compositor->view_list, link) {
 		if (view->output_mask & (1u << output->id))
 			weston_view_assign_output(view);