fix: fallback to FullSizeContentView for frameless window on mac (#13599)
fix: draggable regions not working on macOS
This commit is contained in:
parent
28d4f7f25a
commit
0ec4ad288d
5 changed files with 123 additions and 55 deletions
|
@ -85,6 +85,11 @@ BrowserWindow::BrowserWindow(v8::Isolate* isolate,
|
|||
|
||||
InitWith(isolate, wrapper);
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
if (!window()->has_frame())
|
||||
OverrideNSWindowContentView();
|
||||
#endif
|
||||
|
||||
// Init window after everything has been setup.
|
||||
window()->InitFromOptions(options);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue