Consistent conversion from/to cursor to/from coordinates
Differential Revision: https://phabricator.kde.org/D4538