Fixes the size of the main window.