2.3: preserve aspect ratio when switching windows