mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 05:21:31 +11:00
Window is now NoSend
This commit is contained in:
parent
4028b925d3
commit
5aa72279aa
|
@ -20,7 +20,8 @@ mod events;
|
||||||
mod hints;
|
mod hints;
|
||||||
|
|
||||||
pub struct Window {
|
pub struct Window {
|
||||||
window: winimpl::Window
|
window: winimpl::Window,
|
||||||
|
nosend: std::kinds::marker::NoSend,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Window {
|
impl Window {
|
||||||
|
@ -29,7 +30,10 @@ impl Window {
|
||||||
-> Result<Window, String>
|
-> Result<Window, String>
|
||||||
{
|
{
|
||||||
let win = try!(winimpl::Window::new(dimensions, title, hints));
|
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.
|
/// Returns true if the window has been closed by the user.
|
||||||
|
|
Loading…
Reference in a new issue