compositor: surface and view output comment fixes
weston_surface::output and weston_view::output as used for different
purposes. Only the surface output is used for frame callbacks.
The uses of the view output are much more vague and hard to describe.
Also fix a comment mistake in weston_surface_assign_output().
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
Reviewed-by: Armin Krezović <krezovic.armin@gmail.com>
[Pekka: more verbose on the compositor.h comments]
diff --git a/src/compositor.h b/src/compositor.h
index 91d1a22..0bbf458 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -949,8 +949,9 @@
} transform;
/*
- * Which output to vsync this surface to.
- * Used to determine, whether to send or queue frame events.
+ * The primary output for this view.
+ * Used for picking the output for driving internal animations on the
+ * view, inheriting the primary output for related views in shells, etc.
*/
struct weston_output *output;
@@ -1019,7 +1020,9 @@
/*
* Which output to vsync this surface to.
- * Used to determine, whether to send or queue frame events.
+ * Used to determine whether to send or queue frame events, and for
+ * other client-visible syncing/throttling tied to the output
+ * repaint cycle.
*/
struct weston_output *output;