How to prevent this?

This is happening in one of the kids rooms. The windows are pretty old and could do with being replaced but is there a temporary fix to prevent this?

This is happening in one of the kids rooms. The windows are pretty old and could do with being replaced but is there a temporary fix to prevent this?