From 4f0294ed4e2224eb628447155c3ed1c86137d2fc Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 2 Nov 2025 21:49:05 -0300 Subject: [PATCH] show window buttons on macOS --- crates/tauri-runtime-cef/src/cef_impl.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/tauri-runtime-cef/src/cef_impl.rs b/crates/tauri-runtime-cef/src/cef_impl.rs index 566755615..087a25959 100644 --- a/crates/tauri-runtime-cef/src/cef_impl.rs +++ b/crates/tauri-runtime-cef/src/cef_impl.rs @@ -654,6 +654,10 @@ wrap_window_delegate! { (!decorated) as i32 } + fn with_standard_window_buttons(&self, _window: Option<&mut Window>) -> ::std::os::raw::c_int { + 1 + } + fn on_window_destroyed(&self, _window: Option<&mut Window>) { on_window_destroyed(self.window_id, &self.windows, &self.callback); }