From 1bcbc9fa825eb9f726fa7ccbbcfe87b5b1019ded Mon Sep 17 00:00:00 2001 From: Michael Ripley Date: Tue, 2 Jul 2024 04:56:56 -0500 Subject: [PATCH] Add some additional macos window attributes --- src/window.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/window.rs b/src/window.rs index 23b1967..74af2e4 100644 --- a/src/window.rs +++ b/src/window.rs @@ -420,6 +420,14 @@ fn init_window(active_event_loop: &ActiveEventLoop, settings: &mut Settings) -> .with_skip_taskbar(true) }; + #[cfg(target_os = "macos")] let window_attributes = { + use winit::platform::macos::WindowAttributesExtMacOS; + window_attributes + .with_title_hidden(true) + .with_titlebar_hidden(true) + .with_has_shadow(false) + }; + let window = active_event_loop.create_window(window_attributes) .unwrap();