I'm running a 3 monitor system. I had the game open on the left monitor. I paused it. When I restored it it started to come back in the position it came from but then jumped to the main monitor.
I would strongly suspect you are checking the coordinates for legality but you're only checking them against the main monitor, not against all monitors in the system.