From 435c64f4732dbf6fa4e92d04a962e42e34f21f1a Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Thu, 18 Dec 2014 10:57:12 +1000 Subject: Fix event name --- src/events.rs | 4 ++-- src/x11/window/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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); } }, -- cgit v1.2.3