If we pass negative height or width on to pixman we get error messages in the log.
Signed-off-by: Derek Foreman <der...@osg.samsung.com> --- src/compositor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index 666bc15..0efb325 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -2574,6 +2574,9 @@ surface_damage(struct wl_client *client, { struct weston_surface *surface = wl_resource_get_user_data(resource); + if (width < 0 || height < 0) + return; + pixman_region32_union_rect(&surface->pending.damage, &surface->pending.damage, x, y, width, height); -- 2.6.2 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel