Fix event name

This commit is contained in:
Glenn Watson 2014-12-18 10:57:12 +10:00
parent 9dc5689eef
commit 435c64f473
2 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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);
}
},