move cursor to a newly created window