summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPekka Paalanen <ppaalanen@gmail.com>2013-03-08 14:56:49 +0200
committerKristian Høgsberg <krh@bitplanet.net>2013-03-18 22:19:57 -0400
commitc3ce738653961e5e98e57aceec9c79d2446219d1 (patch)
treeacbb3c4df974250c5c3ce1378d24e84faecc7798 /tests
parentf1f48cfa35cc4068388069e6ac3b688a2716a1de (diff)
compositor: introduce weston_surface_geometry_dirty()
Instead of directly setting the dirty flag on weston_surface geometry, use a function for that. This allows us to hook into geometry dirtying in a following patch. Also add comments to weston_surface fields, whose modification causes transform state to become outdated. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/weston-test.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/weston-test.c b/tests/weston-test.c
index b29b64fd..4dc2e5ca 100644
--- a/tests/weston-test.c
+++ b/tests/weston-test.c
@@ -83,11 +83,8 @@ test_surface_configure(struct weston_surface *surface, int32_t sx, int32_t sy, i
wl_list_insert(&test->layer.surface_list,
&surface->layer_link);
- surface->geometry.x = test_surface->x;
- surface->geometry.y = test_surface->y;
- surface->geometry.width = width;
- surface->geometry.height = height;
- surface->geometry.dirty = 1;
+ weston_surface_configure(surface, test_surface->x, test_surface->y,
+ width, height);
if (!weston_surface_is_mapped(surface))
weston_surface_update_transform(surface);