Fix saving size of window in minimized state.