mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
Fix transparent window having border on OS X 10.9
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user