From 4c7b48e5965ff485541fffa0c5c40b7296fc4d3b Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 6 Mar 2018 13:31:12 +0900 Subject: [PATCH] mac: Window's native view should be its content view --- atom/browser/native_window_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 2fa9a2a6126..1417d93eff8 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -1546,7 +1546,7 @@ void NativeWindowMac::SetParentWindow(NativeWindow* parent) { } gfx::NativeView NativeWindowMac::GetNativeView() const { - return inspectable_web_contents()->GetView()->GetNativeView(); + return [window_ contentView]; } gfx::NativeWindow NativeWindowMac::GetNativeWindow() const {