From 3147d30b5ce0e88b5b60ec59ce7fd7528e822634 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 7 Jan 2026 17:07:23 +0100 Subject: [PATCH] Implement Send for Display and Window --- src/targets/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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,