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.