From 5bb272d7f398647a227344f86a232c8cc0181cce Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 13 Jul 2018 10:54:51 +0100 Subject: surface: add wlr_surface.opaque_region --- include/wlr/types/wlr_surface.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h index 93f456cd..0e3b5ff4 100644 --- a/include/wlr/types/wlr_surface.h +++ b/include/wlr/types/wlr_surface.h @@ -66,6 +66,12 @@ struct wlr_surface { * just like the buffer's texture. */ pixman_region32_t buffer_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. + */ + pixman_region32_t opaque_region; /** * `current` contains the current, committed surface state. `pending` * accumulates state changes from the client between commits and shouldn't -- cgit v1.2.3