input: Don't recreate the cursor sprite when only the hotspot changes
authorDerek Foreman <derekf@osg.samsung.com>
Mon, 23 Mar 2015 15:55:32 +0000 (10:55 -0500)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 26 Mar 2015 08:15:48 +0000 (10:15 +0200)
commit4e53c53fe705781e848cfbfa24f0aff7eba0a5ff
treed48f2055cad2260aa68296a771eff7392ee3bf4a
parentabff883d2c8aca3ea28e880e90e5806604588720
input: Don't recreate the cursor sprite when only the hotspot changes

Currently we unmap and re-map the cursor when the hotspot changes which
causes spurious enter/leave events.

This changes the pointer_set_cursor() logic to avoid this.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/input.c