diff options
author | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-07-30 13:29:28 +0200 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-07-30 13:29:28 +0200 |
commit | 6d9c5eb2bd61ef811afff959c2d7e7e3a1d21f06 (patch) | |
tree | 018c0ff647b97ebacb416e0949e17e34355c1a52 /src/x11 | |
parent | 1249ebed803993078f4c11e5d2565477bdaeccf5 (diff) | |
download | glutin-6d9c5eb2bd61ef811afff959c2d7e7e3a1d21f06.tar.gz glutin-6d9c5eb2bd61ef811afff959c2d7e7e3a1d21f06.zip |
should_close() renamed to is_closed()
Diffstat (limited to 'src/x11')
-rw-r--r-- | src/x11/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/x11/mod.rs b/src/x11/mod.rs index b099ef5..4c4d400 100644 --- a/src/x11/mod.rs +++ b/src/x11/mod.rs @@ -10,7 +10,7 @@ pub struct Window { display: *mut ffi::Display, window: ffi::Window, context: ffi::GLXContext, - should_close: AtomicBool, + is_closed: AtomicBool, wm_delete_window: ffi::Atom, } @@ -103,14 +103,14 @@ impl Window { display: display, window: window, context: context, - should_close: AtomicBool::new(false), + is_closed: AtomicBool::new(false), wm_delete_window: wm_delete_window, }) } - pub fn should_close(&self) -> bool { + pub fn is_closed(&self) -> bool { use std::sync::atomics::Relaxed; - self.should_close.load(Relaxed) + self.is_closed.load(Relaxed) } pub fn set_title(&self, title: &str) { @@ -167,7 +167,7 @@ impl Window { let client_msg: &ffi::XClientMessageEvent = unsafe { mem::transmute(&xev) }; if client_msg.l[0] == self.wm_delete_window as libc::c_long { - self.should_close.store(true, Relaxed); + self.is_closed.store(true, Relaxed); events.push(Closed); } }, |