

Oops, sorry, I assumed you were talking about a smudge on the glass of the lens, not a glass window.
In the case of a smudged glass window, that’s an issue for both types of autofocus, and it occurs because the glass is closer than the subject you’re trying to focus on. And due to the way the physics of light work, it’s easier to find focus on closer subjects than distant subjects, for the same reasons that your depth of field increases the further your focal point is away from your sensor. And because the smudge itself is something that provides sufficient detail for autofocus to work, the smudge will often become the target of the autofocus.
There are a few ways of dealing with it though.
You can step closer to the glass, so the smudge is within the minimal focal point distance of your camera. If it’s too close for your camera to focus on, it won’t accidentally focus on it. Some lenses also have switches that let you control the minimal focal point distance. This is more common on telephoto lenses, but if your lens has that kind of switch, you can use it to ensure that the smudge is too close to focus on.
You can also change the active autofocus points on your camera so the smudge is under an autofocus point.
You can also drop the camera down to one autofocus point, move the camera to focus on the distant target without the smudge in the way, then half hold down the shutter button, and then reframe the shot whilst holding the shutter. That will keep the focal length set to where it was, but it won’t actually take the photo until you press the shutter the whole way in















There are about 100 billion stars in our galaxy. There are about 200 trillion galaxies in the parts of the universe that are observable from earth. Which is to say, galaxies outnumber the stars in our galaxy by about 20 to 1.
If we limit it to stars we can see with the naked eye, then instead of 100 billion stars, you’re down to something like 5,000 to 10,000 stars depending where on earth you are observing from. In which case galaxies in the observable universe outnumber the stars we can see about 20 billion to 1.