From: Max Graey Date: Sat, 18 Apr 2015 12:08:22 +0000 (+0700) Subject: Fix some draw issues in native mac os window X-Git-Tag: v0.25.2~26^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0d3cc8aaa789bce5da35736af9dc5ea9b37740e3;p=electron.git Fix some draw issues in native mac os window Fix some non-transparent corners and lacking redraw while resizing non-frame window --- diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 66882662..c1864d21 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -348,6 +348,11 @@ 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_) { + [window_ setOpaque:NO]; + } // We will manage window's lifetime ourselves. [window_ setReleasedWhenClosed:NO];