Preserve correct window sizes.