From 8574a55bd848e98f79d95aecca76b1e2ce561edf Mon Sep 17 00:00:00 2001 From: "trop[bot]" Date: Tue, 25 Sep 2018 12:03:54 -0700 Subject: [PATCH] fix: inconsistent titleBarStyle on transparent fullscreen (#14790) --- atom/browser/ui/cocoa/atom_ns_window_delegate.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/ui/cocoa/atom_ns_window_delegate.mm b/atom/browser/ui/cocoa/atom_ns_window_delegate.mm index 78bfe1fcd7b5..68ee2798ed0e 100644 --- a/atom/browser/ui/cocoa/atom_ns_window_delegate.mm +++ b/atom/browser/ui/cocoa/atom_ns_window_delegate.mm @@ -203,6 +203,7 @@ // Set window style to hide the toolbar, otherwise the toolbar will show // in fullscreen mode. + [window setTitlebarAppearsTransparent:NO]; shell_->SetStyleMask(true, NSFullSizeContentViewWindowMask); } } @@ -221,6 +222,7 @@ // Turn off the style for toolbar. if (shell_->title_bar_style() == atom::NativeWindowMac::HIDDEN_INSET) { shell_->SetStyleMask(false, NSFullSizeContentViewWindowMask); + [window setTitlebarAppearsTransparent:YES]; } } }