|
@@ -3,6 +3,11 @@ From: Cheng Zhao <[email protected]>
|
|
|
Date: Thu, 20 Sep 2018 17:46:28 -0700
|
|
|
Subject: render_widget_host_view_mac.patch
|
|
|
|
|
|
+This allows Electron to override `acceptsFirstMouse` on Mac so that windows can
|
|
|
+respond to the first mouse click in their window, which is desirable for some
|
|
|
+kinds of utility windows. Similarly for `disableAutoHideCursor`.
|
|
|
+
|
|
|
+Additionally, disables usage of some private APIs in MAS builds.
|
|
|
|
|
|
diff --git a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
|
|
index 320287e7cc5a2f11f135494a11e0a51d3818d41c..e88ed7afb6ea20c7a5cebba6cfe8c0b5fef1a52c 100644
|
|
@@ -65,15 +70,3 @@ index 320287e7cc5a2f11f135494a11e0a51d3818d41c..e88ed7afb6ea20c7a5cebba6cfe8c0b5
|
|
|
}
|
|
|
return validAttributesForMarkedText_.get();
|
|
|
}
|
|
|
-diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
|
|
-index 275caf58aa73b1a775554753ad1ffe55fd93d45d..b6897c88c2c433e73f092f2ccebf29f097db35b0 100644
|
|
|
---- a/content/browser/renderer_host/render_widget_host_view_mac.mm
|
|
|
-+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
|
|
-@@ -63,6 +63,7 @@
|
|
|
- #include "ui/events/keycodes/dom/dom_keyboard_layout_map.h"
|
|
|
- #include "ui/gfx/geometry/dip_util.h"
|
|
|
- #include "ui/gfx/mac/coordinate_conversion.h"
|
|
|
-+#include "ui/gl/gpu_switching_manager.h"
|
|
|
-
|
|
|
- using blink::WebInputEvent;
|
|
|
- using blink::WebMouseEvent;
|