Window focus issue fixed on Windows