From 80c8ab4c39641727f2c37195774de01a1cd16377 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 25 Apr 2015 10:35:28 +0800 Subject: [PATCH] Style fix --- atom/browser/native_window_mac.mm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index c1864d21839..1ac7f342a3f 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -348,11 +348,10 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents, [window_ setHasShadow:NO]; [window_ setBackgroundColor:[NSColor clearColor]]; } - - // Fix some non-transparent corners and lacking redraw while resizing non-frame window - if (!has_frame_) { + + // Remove non-transparent corners, see http://git.io/vfonD. + if (!has_frame_) [window_ setOpaque:NO]; - } // We will manage window's lifetime ourselves. [window_ setReleasedWhenClosed:NO];