mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +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.
|
/// An event from the mouse has been received.
|
||||||
MouseInput(ElementState, MouseButton),
|
MouseInput(ElementState, MouseButton),
|
||||||
|
|
||||||
/// The window should be redrawn.
|
/// The event loop was woken up by another thread.
|
||||||
Refresh,
|
Awakened,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type ScanCode = u8;
|
pub type ScanCode = u8;
|
||||||
|
|
|
@ -446,7 +446,7 @@ impl Window {
|
||||||
},
|
},
|
||||||
|
|
||||||
ffi::ClientMessage => {
|
ffi::ClientMessage => {
|
||||||
use events::Event::{Closed, Refresh};
|
use events::Event::{Closed, Awakened};
|
||||||
use std::sync::atomic::Relaxed;
|
use std::sync::atomic::Relaxed;
|
||||||
|
|
||||||
let client_msg: &ffi::XClientMessageEvent = unsafe { mem::transmute(&xev) };
|
let client_msg: &ffi::XClientMessageEvent = unsafe { mem::transmute(&xev) };
|
||||||
|
@ -455,7 +455,7 @@ impl Window {
|
||||||
self.is_closed.store(true, Relaxed);
|
self.is_closed.store(true, Relaxed);
|
||||||
events.push(Closed);
|
events.push(Closed);
|
||||||
} else {
|
} else {
|
||||||
events.push(Refresh);
|
events.push(Awakened);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue