weston-test: Always update transform when moving surface
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 14 Nov 2013 05:55:57 +0000 (21:55 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 14 Nov 2013 05:55:57 +0000 (21:55 -0800)
commitace0a3920e791733211178f83f88bc5c52887042
tree2bc831214b9e51f613cc68e7bf4ea2c2eddb8d1a
parenta3a784adae445b4f0bc965d5028ad8be9924e4fb
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
tests/weston-test.c