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 <ppaalanen@gmail.com>
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);
}
}