Only to the window. And if people can decide that throwing a brick or stone through a non-feeling window is worthy of some sort of punishment, then they can also decide to ban smoking in certain areas. If you really don't like this law, work to change it, like many others do on various issues.
Unless, of course, you no longer believe in the current government. In which case, my previous question still stands.