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. /// 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;

View file

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