mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Fix event name
This commit is contained in:
parent
9dc5689eef
commit
435c64f473
|
@ -32,8 +32,8 @@ pub enum Event {
|
|||
/// An event from the mouse has been received.
|
||||
MouseInput(ElementState, MouseButton),
|
||||
|
||||
/// The window should be redrawn.
|
||||
Refresh,
|
||||
/// The event loop was woken up by another thread.
|
||||
Awakened,
|
||||
}
|
||||
|
||||
pub type ScanCode = u8;
|
||||
|
|
|
@ -446,7 +446,7 @@ impl Window {
|
|||
},
|
||||
|
||||
ffi::ClientMessage => {
|
||||
use events::Event::{Closed, Refresh};
|
||||
use events::Event::{Closed, Awakened};
|
||||
use std::sync::atomic::Relaxed;
|
||||
|
||||
let client_msg: &ffi::XClientMessageEvent = unsafe { mem::transmute(&xev) };
|
||||
|
@ -455,7 +455,7 @@ impl Window {
|
|||
self.is_closed.store(true, Relaxed);
|
||||
events.push(Closed);
|
||||
} else {
|
||||
events.push(Refresh);
|
||||
events.push(Awakened);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue