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:
parent
96c886a8f0
commit
0d3cc8aaa7
1 changed files with 5 additions and 0 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue