diff --git a/src/targets/mod.rs b/src/targets/mod.rs index c19b00c..1a9398c 100644 --- a/src/targets/mod.rs +++ b/src/targets/mod.rs @@ -10,6 +10,9 @@ mod win; #[cfg(target_os = "linux")] mod linux; +#[cfg(target_os = "windows")] +unsafe impl Send for Window {} + #[derive(Debug, Clone)] pub struct Window { pub id: u32, @@ -22,6 +25,9 @@ pub struct Window { pub raw_handle: cidre::cg::WindowId, } +#[cfg(target_os = "windows")] +unsafe impl Send for Display {} + #[derive(Debug, Clone)] pub struct Display { pub id: u32,