Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Sep 27, 2024
1 parent 0453d90 commit 2b1e7da
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/desktop/src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,16 @@ fn _set_pin(value: bool, window: &WebviewWindow, pinned: State<Pinned>, menu: St
#[cfg(target_os = "macos")]
use cocoa::appkit::NSWindow;
let id = webview.ns_window() as cocoa::base::id;

#[cfg(target_arch = "aarch64")]
id.setIgnoresMouseEvents_(value);

// convert bool into number
#[cfg(target_arch = "x86_64")]
{
let value = if value { 1 } else { 0 };
id.setHasShadow_(value);
}
});

window.set_ignore_cursor_events(value);
Expand Down

0 comments on commit 2b1e7da

Please sign in to comment.