From ccdeb915fa344be2097309b252d082b0af2fee8b Mon Sep 17 00:00:00 2001 From: Ryohei Ikegami Date: Thu, 8 Dec 2016 12:12:53 +0900 Subject: [PATCH] :apple: Make sure no round corners for modal windows --- atom/browser/native_window_mac.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 6c4212b..5031951 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -1401,10 +1401,10 @@ void NativeWindowMac::ShowWindowButton(NSWindowButton button) { } void NativeWindowMac::InstallView() { - // Make sure the bottom corner is rounded: http://crbug.com/396264. + // Make sure the bottom corner is rounded for non-modal windows: http://crbug.com/396264. // 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())) + if (!(transparent() && base::mac::IsOSMavericks()) && !is_modal()) [[window_ contentView] setWantsLayer:YES]; NSView* view = inspectable_web_contents()->GetView()->GetNativeView(); -- 2.7.4