bird hitting window repeatedly

Window baffles bird
Window baffles bird
Window baffles bird
Yesterday, when I was at home during lunch. I heard this thump. Then I heard it again ... thump. I walked into the living room where the thumping was radiating from to see a bird hitting the window. Now, normally a bird would hit the window once and fly away.