aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/x11
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-06-16 13:48:08 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-06-16 14:03:58 +0200
commit39128dd7e11ffa05eb06933cb6e3ce0e750e8806 (patch)
treedb182dc6912706438a39525bed7aa4e3150d4571 /src/api/x11
parenteb73c2514eefae08a5f1850ce7ee7178b903c4cf (diff)
downloadglutin-39128dd7e11ffa05eb06933cb6e3ce0e750e8806.tar.gz
glutin-39128dd7e11ffa05eb06933cb6e3ce0e750e8806.zip
Remove the is_closed function
Diffstat (limited to 'src/api/x11')
-rw-r--r--src/api/x11/window.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs
index ba0fe52..41b74f5 100644
--- a/src/api/x11/window.rs
+++ b/src/api/x11/window.rs
@@ -263,9 +263,10 @@ impl<'a> Iterator for WaitEventsIterator<'a> {
type Item = Event;
fn next(&mut self) -> Option<Event> {
+ use std::sync::atomic::Ordering::Relaxed;
use std::mem;
- while !self.window.is_closed() {
+ while !self.window.is_closed.load(Relaxed) {
if let Some(ev) = self.window.pending_events.lock().unwrap().pop_front() {
return Some(ev);
}
@@ -596,11 +597,6 @@ impl Window {
Ok(window)
}
- pub fn is_closed(&self) -> bool {
- use std::sync::atomic::Ordering::Relaxed;
- self.is_closed.load(Relaxed)
- }
-
pub fn set_title(&self, title: &str) {
with_c_str(title, |title| unsafe {
(self.x.display.xlib.XStoreName)(self.x.display.display, self.x.window, title);