Skip to content

Commit 2ee8142

Browse files
committed
Fix transparent window having border on OS X 10.9
1 parent 056166e commit 2ee8142

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

atom/browser/native_window_mac.mm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,10 @@ static bool FromV8(v8::Isolate* isolate, v8::Handle<v8::Value> val,
10821082

10831083
void NativeWindowMac::InstallView() {
10841084
// Make sure the bottom corner is rounded: http://crbug.com/396264.
1085-
[[window_ contentView] setWantsLayer:YES];
1085+
// But do not enable it on OS X 10.9 for transparent window, otherwise a
1086+
// semi-transparent frame would show.
1087+
if (!(transparent() && base::mac::IsOSMavericks()))
1088+
[[window_ contentView] setWantsLayer:YES];
10861089

10871090
NSView* view = inspectable_web_contents()->GetView()->GetNativeView();
10881091
if (has_frame()) {

0 commit comments

Comments
 (0)