Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
harana-bot committed Feb 4, 2024
1 parent 4eaecbd commit 7d94586
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-tauri/src/windows_mac.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(target_os = "macos")]

use std::sync::Once;

use cocoa::{
Expand Down Expand Up @@ -177,7 +179,7 @@ pub struct Monitor {
/// Gets the Monitor with cursor
pub fn get_monitor_with_cursor() -> Option<Monitor> {
objc::rc::autoreleasepool(|| {
let mouse_location: NSPoint = unsafe { msg_send![class!(NSEvent), mouseLocation] };
let mouse_location: NSPoint = unsafe { msg_send![class!(NSEvent), mouseLocation] };
let screens: id = unsafe { msg_send![class!(NSScreen), screens] };
let screens_iter: id = unsafe { msg_send![screens, objectEnumerator] };
let mut next_screen: id;
Expand Down

0 comments on commit 7d94586

Please sign in to comment.