Fixed setInputMode to take window pointer