aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-13 10:54:51 +0100
committeremersion <contact@emersion.fr>2018-07-13 10:54:51 +0100
commit5bb272d7f398647a227344f86a232c8cc0181cce (patch)
treeb3c01080ead17997e8fe186d9bdeeabc79547c4c /include/wlr
parentc4915d149289683b6a3b8c836ba5591a8973baba (diff)
surface: add wlr_surface.opaque_region
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_surface.h6
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