diff options
author | emersion <contact@emersion.fr> | 2018-07-13 10:54:51 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-07-13 10:54:51 +0100 |
commit | 5bb272d7f398647a227344f86a232c8cc0181cce (patch) | |
tree | b3c01080ead17997e8fe186d9bdeeabc79547c4c /include/wlr | |
parent | c4915d149289683b6a3b8c836ba5591a8973baba (diff) |
surface: add wlr_surface.opaque_region
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_surface.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -67,6 +67,12 @@ struct wlr_surface { */ 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 * be accessed by the compositor directly. `previous` contains the state of |