How to Straighten a Window