diff options
author | Nathaniel Theis <nttheis@gmail.com> | 2015-04-01 10:04:43 -0700 |
---|---|---|
committer | Nathaniel Theis <nttheis@gmail.com> | 2015-04-01 10:12:53 -0700 |
commit | e51dd82478c0f0eb3e8b54ce6439f6e0d7bb92dc (patch) | |
tree | a04ef03b79e8175497478668833527e4981db574 /src/win32/mod.rs | |
parent | a1b504d16c6734dd064aff84059f45c803d97eb3 (diff) | |
download | glutin-e51dd82478c0f0eb3e8b54ce6439f6e0d7bb92dc.tar.gz glutin-e51dd82478c0f0eb3e8b54ce6439f6e0d7bb92dc.zip |
cursor state on w32
Diffstat (limited to 'src/win32/mod.rs')
-rw-r--r-- | src/win32/mod.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs index e20d8b7..2769bf1 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -2,7 +2,10 @@ use std::sync::atomic::AtomicBool; use std::mem; use std::ptr; use std::ffi::CString; -use std::sync::Mutex; +use std::sync::{ + Arc, + Mutex +}; use std::sync::mpsc::Receiver; use libc; use {CreationError, Event, MouseCursor}; @@ -47,7 +50,7 @@ pub struct Window { is_closed: AtomicBool, /// The current cursor state. - cursor_state: Mutex<CursorState>, + cursor_state: Arc<Mutex<CursorState>>, } unsafe impl Send for Window {} |