You can buy stickers to go on windows that are visible to birds but not as visible to humans to prevent this. Sadly many birds that hit windows aren't as luck as OP's bird.
The stickers are much cheaper online than they are from a specialty bird store. Curtains or blinds are also effective, of course.