diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-11-13 21:55:57 -0800 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-11-13 21:55:57 -0800 |
commit | ace0a3920e791733211178f83f88bc5c52887042 (patch) | |
tree | 2bc831214b9e51f613cc68e7bf4ea2c2eddb8d1a /tests | |
parent | a3a784adae445b4f0bc965d5028ad8be9924e4fb (diff) |
weston-test: Always update transform when moving surface
weston_view_update_transform() will post damage in the old and new
positions of the view and thus make sure we always repaint properly.
In particular, in bug 66133, the test suite moves the surface off
any output and weston_surface_schedule_repaint() in commit fails to
do anything, since the surface is not on any output.
After changing view geometry, we have to either call
weston_compositor_schedule_repaint(), which is what shell.c typically
does, though that repaints all outputs, or call
weston_view_update_transform() to force update the transformation
and queue repaints on affected outputs.
https://bugs.freedesktop.org/show_bug.cgi?id=66133
Diffstat (limited to 'tests')
-rw-r--r-- | tests/weston-test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/weston-test.c b/tests/weston-test.c index 5f341d86..0536be4d 100644 --- a/tests/weston-test.c +++ b/tests/weston-test.c @@ -88,8 +88,7 @@ test_surface_configure(struct weston_surface *surface, int32_t sx, int32_t sy, i test_surface->x, test_surface->y, width, height); - if (!weston_view_is_mapped(test_surface->view)) - weston_view_update_transform(test_surface->view); + weston_view_update_transform(test_surface->view); } static void |