mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 05:21:31 +11:00
Fix typos (#2375)
This commit is contained in:
parent
1091a8ba1a
commit
430a49ebc2
|
@ -77,7 +77,7 @@
|
|||
//! currently uses a three-pronged approach:
|
||||
//! + Use the value in the `WINIT_X11_SCALE_FACTOR` environment variable, if present.
|
||||
//! + If not present, use the value set in `Xft.dpi` in Xresources.
|
||||
//! + Otherwise, calcuate the scale factor based on the millimeter monitor dimensions provided by XRandR.
|
||||
//! + Otherwise, calculate the scale factor based on the millimeter monitor dimensions provided by XRandR.
|
||||
//!
|
||||
//! If `WINIT_X11_SCALE_FACTOR` is set to `randr`, it'll ignore the `Xft.dpi` field and use the
|
||||
//! XRandR scaling method. Generally speaking, you should try to configure the standard system
|
||||
|
|
|
@ -383,7 +383,7 @@ impl<T> fmt::Display for EventLoopClosed<T> {
|
|||
|
||||
impl<T: fmt::Debug> error::Error for EventLoopClosed<T> {}
|
||||
|
||||
/// Fiter controlling the propagation of device events.
|
||||
/// Filter controlling the propagation of device events.
|
||||
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
|
||||
pub enum DeviceEventFilter {
|
||||
/// Always filter out device events.
|
||||
|
|
|
@ -881,7 +881,7 @@ impl MonitorHandle {
|
|||
}
|
||||
|
||||
pub fn refresh_rate_millihertz(&self) -> Option<u32> {
|
||||
// FIXME no way to get real refrsh rate for now.
|
||||
// FIXME no way to get real refresh rate for now.
|
||||
None
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ pub struct EventLoopWindowTarget<T> {
|
|||
|
||||
/// Theme manager to manage cursors.
|
||||
///
|
||||
/// It's being shared amoung all windows to avoid loading
|
||||
/// It's being shared between all windows to avoid loading
|
||||
/// multiple similar themes.
|
||||
pub theme_manager: ThemeManager,
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ impl Window {
|
|||
.create_surface_with_scale_callback(move |scale, surface, mut dispatch_data| {
|
||||
let winit_state = dispatch_data.get::<WinitState>().unwrap();
|
||||
|
||||
// Get the window that receiced the event.
|
||||
// Get the window that received the event.
|
||||
let window_id = super::make_wid(&surface);
|
||||
let mut window_update = winit_state.window_updates.get_mut(&window_id).unwrap();
|
||||
|
||||
|
|
|
@ -180,10 +180,10 @@ impl PotentialInputMethod {
|
|||
}
|
||||
|
||||
// By logging this struct, you get a sequential listing of every locale modifier tried, where it
|
||||
// came from, and if it succceeded.
|
||||
// came from, and if it succeeded.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct PotentialInputMethods {
|
||||
// On correctly configured systems, the XMODIFIERS environemnt variable tells us everything we
|
||||
// On correctly configured systems, the XMODIFIERS environment variable tells us everything we
|
||||
// need to know.
|
||||
xmodifiers: Option<PotentialInputMethod>,
|
||||
// We have some standard options at our disposal that should ostensibly always work. For users
|
||||
|
@ -213,7 +213,7 @@ impl PotentialInputMethods {
|
|||
// that case, we get `None` and end up skipping ahead to the next method.
|
||||
xmodifiers,
|
||||
fallbacks: [
|
||||
// This is a standard input method that supports compose equences, which should
|
||||
// This is a standard input method that supports compose sequences, which should
|
||||
// always be available. `@im=none` appears to mean the same thing.
|
||||
PotentialInputMethod::from_str("@im=local"),
|
||||
// This explicitly specifies to use the implementation-dependent default, though
|
||||
|
|
|
@ -457,7 +457,7 @@ impl<T: 'static> EventLoop<T> {
|
|||
// must do this because during the execution of the iteration we sometimes wake
|
||||
// the mio waker, and if the waker is already awaken before we call poll(),
|
||||
// then poll doesn't block, but it returns immediately. This caused the event
|
||||
// loop to run continously even if the control_flow was `Wait`
|
||||
// loop to run continuously even if the control_flow was `Wait`
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ impl XConnection {
|
|||
property,
|
||||
// This offset is in terms of 32-bit chunks.
|
||||
offset,
|
||||
// This is the quanity of 32-bit chunks to receive at once.
|
||||
// This is the quantity of 32-bit chunks to receive at once.
|
||||
PROPERTY_BUFFER_SIZE,
|
||||
ffi::False,
|
||||
property_type,
|
||||
|
|
|
@ -65,7 +65,7 @@ impl<T: 'static> Runner<T> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns the cooresponding `StartCause` for the current `state`, or `None`
|
||||
/// Returns the corresponding `StartCause` for the current `state`, or `None`
|
||||
/// when in `Exit` state.
|
||||
fn maybe_start_cause(&self) -> Option<StartCause> {
|
||||
Some(match self.state {
|
||||
|
|
|
@ -625,7 +625,7 @@ impl Window {
|
|||
self.window.set_visible(visible)
|
||||
}
|
||||
|
||||
/// Gets the window's current vibility state.
|
||||
/// Gets the window's current visibility state.
|
||||
///
|
||||
/// `None` means it couldn't be determined, so it is not recommended to use this to drive your rendering backend.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue