diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2014-12-18 10:57:12 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2014-12-18 10:57:12 +1000 |
commit | 435c64f4732dbf6fa4e92d04a962e42e34f21f1a (patch) | |
tree | 1231a006d0cc59220a598608412b0765f770618e /src | |
parent | 9dc5689eef87cace5e6ac6b5438928a1c99688c4 (diff) | |
download | glutin-435c64f4732dbf6fa4e92d04a962e42e34f21f1a.tar.gz glutin-435c64f4732dbf6fa4e92d04a962e42e34f21f1a.zip |
Fix event name
Diffstat (limited to 'src')
-rw-r--r-- | src/events.rs | 4 | ||||
-rw-r--r-- | src/x11/window/mod.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/events.rs b/src/events.rs index 3cb81ff..beafbec 100644 --- a/src/events.rs +++ b/src/events.rs @@ -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; diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index 6ea14c5..57ae22d 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -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); } }, |