Fix some draw issues in native mac os window

Fix some non-transparent corners and lacking redraw while resizing non-frame window
This commit is contained in:
Max Graey 2015-04-18 19:08:22 +07:00
parent 96c886a8f0
commit 0d3cc8aaa7

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];