diff options
Diffstat (limited to 'include/wlr')
| -rw-r--r-- | include/wlr/types/wlr_surface.h | 12 | 
1 files changed, 9 insertions, 3 deletions
| diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h index ae3ae80f..4255a1f2 100644 --- a/include/wlr/types/wlr_surface.h +++ b/include/wlr/types/wlr_surface.h @@ -112,6 +112,11 @@ struct wlr_surface {  	 */  	pixman_region32_t buffer_damage;  	/** +	 * The last commit's damage caused by surface and its subsurfaces' +	 * movement, in surface-local coordinates. +	 */ +	pixman_region32_t external_damage; +	/**  	 * The current opaque region, in surface-local coordinates. It is clipped to  	 * the surface bounds. If the surface's buffer is using a fully opaque  	 * format, this is set to the whole surface. @@ -273,9 +278,10 @@ void wlr_surface_for_each_surface(struct wlr_surface *surface,  	wlr_surface_iterator_func_t iterator, void *user_data);  /** - * Get the effective damage to the surface in terms of surface local - * coordinates. This includes damage induced by resizing and moving the - * surface. The damage is not expected to be bounded by the surface itself. + * Get the effective surface damage in surface-local coordinate space. Besides + * buffer damage, this includes damage induced by resizing and moving the + * surface and its subsurfaces. The resulting damage is not expected to be + * bounded by the surface itself.   */  void wlr_surface_get_effective_damage(struct wlr_surface *surface,  	pixman_region32_t *damage); | 
