I was always brought up to believe that good manners was something for oneself. Different people belong to different traditions and do things differently. Does somebody wearing a hat indoors cause you any inconvenience? or harm you? If not, can't you just accept that they clearly have different ideas than you do?
This is not just hats, either, is it?