From 4c6092e151b070db2b87358761db83b99be511a5 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Tue, 28 Mar 2023 10:52:28 -0400 Subject: [PATCH] fix: draggable regions shouldn't capture clicks on frames windows (#37594) --- shell/browser/api/electron_api_web_contents.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/browser/api/electron_api_web_contents.cc b/shell/browser/api/electron_api_web_contents.cc index b859f36822c1..db7dbbc5053e 100644 --- a/shell/browser/api/electron_api_web_contents.cc +++ b/shell/browser/api/electron_api_web_contents.cc @@ -1988,6 +1988,9 @@ void WebContents::MessageHost(const std::string& channel, void WebContents::UpdateDraggableRegions( std::vector regions) { + if (owner_window() && owner_window()->has_frame()) + return; + draggable_region_ = DraggableRegionsToSkRegion(regions); }