From fed1027ec8d910b5f8c59868cf62f4f32f363abd Mon Sep 17 00:00:00 2001 From: Jason Tsai Date: Wed, 15 May 2024 18:15:25 +0800 Subject: [PATCH] fix: bool to BOOL --- src/platform_impl/macos/window.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform_impl/macos/window.rs b/src/platform_impl/macos/window.rs index e15fa08e1..c59f71808 100644 --- a/src/platform_impl/macos/window.rs +++ b/src/platform_impl/macos/window.rs @@ -1628,7 +1628,9 @@ impl WindowExtMacOS for UnownedWindow { #[inline] fn set_titlebar_transparent(&self, transparent: bool) { unsafe { - self.ns_window.setTitlebarAppearsTransparent_(transparent); + self + .ns_window + .setTitlebarAppearsTransparent_(transparent as BOOL); } } }