From c7b91acf4112634a2e82fea1577ff8bc61958dc2 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 24 Sep 2018 17:15:18 -0700 Subject: [PATCH] fix: inconsistent titleBarStyle on transparent fullscreen (#14765) --- 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 c58da546dc..72739bec4c 100644 --- a/atom/browser/ui/cocoa/atom_ns_window_delegate.mm +++ b/atom/browser/ui/cocoa/atom_ns_window_delegate.mm @@ -212,6 +212,7 @@ // Set window style to hide the toolbar, otherwise the toolbar will show // in fullscreen mode. + [window setTitlebarAppearsTransparent:NO]; shell_->SetStyleMask(true, NSFullSizeContentViewWindowMask); } } @@ -230,6 +231,7 @@ // Turn off the style for toolbar. if (shell_->title_bar_style() == atom::NativeWindowMac::HIDDEN_INSET) { shell_->SetStyleMask(false, NSFullSizeContentViewWindowMask); + [window setTitlebarAppearsTransparent:YES]; } } }