Add checks to remove and reset window maxSize constraints when entering and leaving fullscreen.