mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-10 21:21:29 +11:00
Window is now NoSend
This commit is contained in:
parent
4028b925d3
commit
5aa72279aa
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue