made 'stop' option more robust in window_move