Speed of light in any material medium is inversely proportional to the refractive index of the medium. Since refractive index of glass for X-ray is less than that for visible light, an X-ray will travel at a faster speed than visible light in glass.