From 07884b98949ff40c9b4b3be0591d68595a203b38 Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Thu, 23 Jul 2026 13:29:24 +0200 Subject: [PATCH] fix: macOS window border --- packages/oneclient_app/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/oneclient_app/src/main.rs b/packages/oneclient_app/src/main.rs index e5aeee62..5c92eaa1 100644 --- a/packages/oneclient_app/src/main.rs +++ b/packages/oneclient_app/src/main.rs @@ -70,19 +70,17 @@ fn main() { .with_transparency(true) .with_background(Color::TRANSPARENT); - // macOS: keep the native frame (rounded corners + drop shadow) but hide the - // titlebar and extend content into it. Other platforms stay borderless. #[cfg(target_os = "macos")] let window_config = window_config .with_decorations(true) .with_window_attributes(|attrs, _| { use freya::winit::platform::macos::WindowAttributesExtMacOS; attrs - .with_titlebar_hidden(true) .with_title_hidden(true) .with_titlebar_transparent(true) .with_titlebar_buttons_hidden(true) .with_fullsize_content_view(true) + .with_has_shadow(true) }); #[cfg(not(target_os = "macos"))]