Make robot only change mouse position on window exit