Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Nov 5, 2023
1 parent ef9acc8 commit 438edc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src-tauri/src/window_custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ impl<R: Runtime> WindowExt for Window<R> {
NSWindowTitleVisibility::NSWindowTitleVisible
});

// disable shadows
#[cfg(target_arch = "aarch64")]
id.setHasShadow_(false);

#[cfg(target_arch = "x86_64")]
id.setHasShadow_(0);

id.setTitlebarAppearsTransparent_(if title_transparent {
cocoa::base::YES
} else {
Expand Down

0 comments on commit 438edc6

Please sign in to comment.