window: Always clamp to max size
When computing the window size, always try to clamp to the max size. This will shrink a window down into a sane size if it was too big before.
When computing the window size, always try to clamp to the max size. This will shrink a window down into a sane size if it was too big before.