compositor: make position a surface transformation
Put the surface translation (absolute position) into the surface
transformations list. This allows to set additional transformations
before and after the global translation.
Having the translation cached, changing the surface x,y now requires to
set the geometry.dirty flag.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
diff --git a/src/compositor.h b/src/compositor.h
index d8e9ab8..c05e596 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -245,6 +245,8 @@
int enabled;
struct weston_matrix matrix;
struct weston_matrix inverse;
+
+ struct weston_transform position; /* matrix from x, y */
} transform;
/*