From: Pekka Paalanen Date: Mon, 13 Feb 2012 09:01:59 +0000 (+0200) Subject: compositor: remove redundant cursor damage calls X-Git-Tag: 20120702.1049~483 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8c6aae688001ee55868ea2e02360e82ee464dce;p=profile%2Fivi%2Fweston.git compositor: remove redundant cursor damage calls As weston_surface_update_transform() automatically applies before and after damage on surface geometry change, we don't need to explicitly add the same damage in motion_notify() for the cursor surface. We still need the side-effect, that is scheduling a repaint. Signed-off-by: Pekka Paalanen --- diff --git a/src/compositor.c b/src/compositor.c index ae1a0fd..f9a4791 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1364,13 +1364,11 @@ notify_motion(struct wl_input_device *device, uint32_t time, int x, int y) device->grab->x, device->grab->y); if (wd->sprite) { - weston_surface_damage_below(wd->sprite); - wd->sprite->geometry.x = device->x - wd->hotspot_x; wd->sprite->geometry.y = device->y - wd->hotspot_y; wd->sprite->geometry.dirty = 1; - weston_surface_damage(wd->sprite); + weston_compositor_schedule_repaint(ec); } }