update mouse pointer on window change