Fix window shape when switching to fullscreen.