compositor: Make sure surface->transform.inverse is a complete matrix
We never init this, so we need to copy over the position matrix and then
overwrite the translation entries to make sure we have a valid matrix.
Thanks to Pekka for spotting this (twice).
diff --git a/src/compositor.c b/src/compositor.c
index eb0195a..6afc491 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -603,7 +603,7 @@
surface->transform.matrix = surface->transform.position.matrix;
- surface->transform.inverse.type = WESTON_MATRIX_TRANSFORM_TRANSLATE;
+ surface->transform.inverse = surface->transform.position.matrix;
surface->transform.inverse.d[12] = -surface->geometry.x;
surface->transform.inverse.d[13] = -surface->geometry.y;