keep the cursor where the active window says it should be

Also turn it off if the active window doesn't say where it should be.

Fixes #25