cursor-tracker: Remove unused constants
cursor-tracker: Shadowing is bad, don't do it
cursor-tracker: Add a comment about what previous is

It confused me a bit.
cursor-tracker: Move ref_count to the top
cursor-tracker: Rearrange code

Move take_texture closer to where it's used, and add hot_x / hot_y args.