Fix incorrect cursor position

When reactivating the cursor its position was updated visually but not internally which caused glfwGetCursorPos to return wrong values.

See [Nibe/glfw-cursor-bug-repro](https://github.com/Nibe/glfw-cursor-bug-repro) for a simple application that demonstrates this issue.