changed order of selecting input at root window