Then he realized that there was no window.
The man finally saw that there were no windows.