aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index eb84bfd..dfbe518 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -20,7 +20,8 @@ mod events;
mod hints;
pub struct Window {
- window: winimpl::Window
+ window: winimpl::Window,
+ nosend: std::kinds::marker::NoSend,
}
impl Window {
@@ -29,7 +30,10 @@ impl Window {
-> Result<Window, String>
{
let win = try!(winimpl::Window::new(dimensions, title, hints));
- Ok(Window{window: win})
+ Ok(Window{
+ window: win,
+ nosend: std::kinds::marker::NoSend,
+ })
}
/// Returns true if the window has been closed by the user.