[PATCH 1/6] compositor: Fix the documentation for surface->configure

Jasper St. Pierre jstpierre at mecheye.net
Mon Apr 28 08:19:27 PDT 2014


It's called on commit, not on attach. Additionally, correct the
interface name to be wl_surface, not surface.
---
 src/compositor.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compositor.h b/src/compositor.h
index 03d8992..c913f54 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -908,9 +908,9 @@ struct weston_surface {
 	} pending;
 
 	/*
-	 * If non-NULL, this function will be called on surface::attach after
+	 * If non-NULL, this function will be called on wl_surface::commit after
 	 * a new buffer has been set up for this surface. The integer params
-	 * are the sx and sy paramerters supplied to surface::attach .
+	 * are the sx and sy paramerters supplied to wl_surface::attach .
 	 */
 	void (*configure)(struct weston_surface *es, int32_t sx, int32_t sy);
 	void *configure_private;
-- 
1.9.0



More information about the wayland-devel mailing list