d13b478ca2
`MouseHandler.grabMouse` and `MouseHandler.releaseMouse` both put the mouse at the window's centre, so a screen opened from gameplay starts with the cursor in the middle. Horizon centred it when the pointer was released, but not when it was grabbed again, so closing a screen left the cursor where the screen had it. The rule is one function now, `mouse_position_after_grab_change`, and the game applies it on both sides of the grab state change. Fixes #1925 Co-Authored-By: minimax-m3.1-flash (Claude Code) <noreply@users.noreply.github.com>