From 1f2f1fb82d4f3c6c0564961e43a52219fb54284e Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Fri, 19 Jul 2019 16:21:07 -0700 Subject: [PATCH] fix: emit swipe event on macOS (#19319) --- shell/browser/api/atom_api_browser_window.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shell/browser/api/atom_api_browser_window.cc b/shell/browser/api/atom_api_browser_window.cc index 01e3ab0ab36..73f3d39a3fb 100644 --- a/shell/browser/api/atom_api_browser_window.cc +++ b/shell/browser/api/atom_api_browser_window.cc @@ -84,8 +84,7 @@ BrowserWindow::BrowserWindow(v8::Isolate* isolate, InitWith(isolate, wrapper); #if defined(OS_MACOSX) - if (!window()->has_frame()) - OverrideNSWindowContentView(web_contents->managed_web_contents()); + OverrideNSWindowContentView(web_contents->managed_web_contents()); #endif // Init window after everything has been setup.