Fixes window cursor functions
There were typos and other issues.
Merge pull request #829 from RobertBColton/master

Fixes window cursor functions