X-rays create a window on glass formation