I recently raised a similar issue to my agency and the owner came out to see, got 2 diff quotes from contractors and next week replacing the wooden sash with proper windows. Rotting frames, big gaps, single pane. No good. What you are showing can be argues as a violation of the repairing standard and tolerable standard. Get involved. This isn't okay.