Merge branch 'master' of https://github.com/MaxGraey/electron into MaxGraey-master

This commit is contained in:
Cheng Zhao 2015-04-25 10:29:34 +08:00
commit 826a4e0e48

View file

@ -349,6 +349,11 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents,
[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];