compositor: add weston_surface bounding box
Compute a surface bounding box, especially for transformed surfaces, for
which one cannot simply use x,y,width,height.
The bounding box depends on width and height, so these are now under the
geometry.dirty flag.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
diff --git a/src/compositor.h b/src/compositor.h
index cb60e5f..2edcce2 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -241,6 +241,8 @@
* This is updated by weston_surface_update_transform().
*/
struct {
+ pixman_region32_t boundingbox;
+
/* matrix and inverse are used only if enabled = 1.
* If enabled = 0, use x, y, width, height directly.
*/