From: Cheng Zhao Date: Sat, 25 Apr 2015 02:35:28 +0000 (+0800) Subject: Style fix X-Git-Tag: v0.25.2~25 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=80c8ab4c39641727f2c37195774de01a1cd16377;p=electron.git Style fix --- diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index c1864d21..1ac7f342 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];