v2.6, set getch and window timeout only for the correct window