From 2ee8142136c93f4edd66ff0f329566802a7821c3 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 12 Jul 2016 15:01:37 +0900 Subject: [PATCH] Fix transparent window having border on OS X 10.9 --- atom/browser/native_window_mac.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 7d627208a5a3..14ac3e73142b 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -1082,7 +1082,10 @@ void NativeWindowMac::UpdateDraggableRegions( void NativeWindowMac::InstallView() { // Make sure the bottom corner is rounded: http://crbug.com/396264. - [[window_ contentView] setWantsLayer:YES]; + // But do not enable it on OS X 10.9 for transparent window, otherwise a + // semi-transparent frame would show. + if (!(transparent() && base::mac::IsOSMavericks())) + [[window_ contentView] setWantsLayer:YES]; NSView* view = inspectable_web_contents()->GetView()->GetNativeView(); if (has_frame()) {