Scale-invariant plasma motions near X-points