mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 14:20:05 -04:00
chore: fix some typos in comments (#3635)
Signed-off-by: growfrow <growfrow@outlook.com>
This commit is contained in:
committed by
Kirill Chibisov
parent
c04c113e7e
commit
61bd8172bd
@@ -72,7 +72,7 @@ pub struct Window {
|
|||||||
/// Source to wake-up the event-loop for window requests.
|
/// Source to wake-up the event-loop for window requests.
|
||||||
event_loop_awakener: calloop::ping::Ping,
|
event_loop_awakener: calloop::ping::Ping,
|
||||||
|
|
||||||
/// The event sink to deliver sythetic events.
|
/// The event sink to deliver synthetic events.
|
||||||
window_events_sink: Arc<Mutex<EventSink>>,
|
window_events_sink: Arc<Mutex<EventSink>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1778,7 +1778,7 @@ impl EventProcessor {
|
|||||||
None => return,
|
None => return,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Send the keys using the sythetic state to not alter the main state.
|
// Send the keys using the synthetic state to not alter the main state.
|
||||||
let mut xkb_state = match XkbState::new_x11(xcb, keymap) {
|
let mut xkb_state = match XkbState::new_x11(xcb, keymap) {
|
||||||
Some(xkb_state) => xkb_state,
|
Some(xkb_state) => xkb_state,
|
||||||
None => return,
|
None => return,
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ impl XConnection {
|
|||||||
|
|
||||||
// Position relative to root window.
|
// Position relative to root window.
|
||||||
// With rare exceptions, this is the position of a nested window. Cases where the window
|
// With rare exceptions, this is the position of a nested window. Cases where the window
|
||||||
// isn't nested are outlined in the comments throghout this function, but in addition to
|
// isn't nested are outlined in the comments throughout this function, but in addition to
|
||||||
// that, fullscreen windows often aren't nested.
|
// that, fullscreen windows often aren't nested.
|
||||||
let (inner_y_rel_root, child) = {
|
let (inner_y_rel_root, child) = {
|
||||||
let coords = self
|
let coords = self
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ impl PanicInfo {
|
|||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Overwrites the curret state if the current state is not panicking
|
/// Overwrites the current state if the current state is not panicking
|
||||||
pub fn set_panic(&self, p: Box<dyn Any + Send + 'static>) {
|
pub fn set_panic(&self, p: Box<dyn Any + Send + 'static>) {
|
||||||
if !self.is_panicking() {
|
if !self.is_panicking() {
|
||||||
self.inner.set(Some(p));
|
self.inner.set(Some(p));
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// A poly-fill for `lazy_cell`
|
// A poly-fill for `lazy_cell`
|
||||||
// Replace with std::sync::LazyLock when https://github.com/rust-lang/rust/issues/109736 is stablized.
|
// Replace with std::sync::LazyLock when https://github.com/rust-lang/rust/issues/109736 is stabilized.
|
||||||
|
|
||||||
// This isn't used on every platform, which can come up as dead code warnings.
|
// This isn't used on every platform, which can come up as dead code warnings.
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|||||||
Reference in New Issue
Block a user