Window trim and paint question

Something I'll have to think about. I haven't had any luck when it comes to glass. Yeah, I need to change some gaskets too. They always seem to leak at certain places.