No. It was a tax on wealth. Glass windows were a luxury good only the rich could afford. Poor people got too much sunlight because they were outside all day, and even those inside could just open their windows for more light. The tax was on the glass, not on the sun.
Discussion
It wasn't glass actually, the law was vague as fuck. Many people paid tax on having a hole in the wall.