improve window_(down|up)