Skip to content

Commit

Permalink
feat: Macos ImplWindow 添加 Send 特征实现 (#124)
Browse files Browse the repository at this point in the history
* feat: macos ImplWindow支持Send特征

* chore: 更新版本号

* feat: 保证线程安全
  • Loading branch information
nashaofu authored Apr 28, 2024
1 parent 75da30e commit f5675c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xcap"
version = "0.0.8"
version = "0.0.9"
edition = "2021"
description = "XCap is a cross-platform screen capture library written in Rust. It supports Linux (X11, Wayland), MacOS, and Windows. XCap supports screenshot and video recording (to be implemented)."
license = "Apache-2.0"
Expand Down
2 changes: 2 additions & 0 deletions src/macos/impl_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ pub(crate) struct ImplWindow {
pub is_maximized: bool,
}

unsafe impl Send for ImplWindow {}

#[link(name = "CoreGraphics", kind = "framework")]
extern "C" {
fn CGRectMakeWithDictionaryRepresentation(
Expand Down

0 comments on commit f5675c9

Please sign in to comment.