mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user