From 20a0508a168accda828929885683fd7f097c57c3 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Mon, 19 Mar 2018 20:45:42 +0200 Subject: [PATCH] Update draggable regions when changing BrowserView Fixes #12150. --- atom/browser/api/atom_api_browser_window.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atom/browser/api/atom_api_browser_window.cc b/atom/browser/api/atom_api_browser_window.cc index 57c06dccca1..362ca1ac9d8 100644 --- a/atom/browser/api/atom_api_browser_window.cc +++ b/atom/browser/api/atom_api_browser_window.cc @@ -1057,6 +1057,10 @@ void BrowserWindow::SetBrowserView(v8::Local value) { window_->SetBrowserView(browser_view->view()); browser_view->web_contents()->SetOwnerWindow(window_.get()); browser_view_.Reset(isolate(), value); + +#if defined(OS_MACOSX) + UpdateDraggableRegions(nullptr, draggable_regions_); +#endif } }