Fix invisible titlebar on macOS 10.13

This commit is contained in:
Tony Ganch 2017-06-19 14:34:37 +02:00
parent c1ac0bac62
commit 471f6e0fa5

View file

@ -899,9 +899,7 @@ NativeWindowMac::NativeWindowMac(
if (transparent() || !has_frame()) {
if (base::mac::IsAtLeastOS10_10()) {
// Don't show title bar.
if (title_bar_style_ == CUSTOM_BUTTONS_ON_HOVER) {
[window_ setTitlebarAppearsTransparent:YES];
}
[window_ setTitlebarAppearsTransparent:YES];
[window_ setTitleVisibility:NSWindowTitleHidden];
}
// Remove non-transparent corners, see http://git.io/vfonD.