fix: draggable regions shouldn't capture clicks on frames windows (#37594)

This commit is contained in:
Shelley Vohr 2023-03-28 10:52:28 -04:00 committed by GitHub
parent b72f81ab5b
commit 4c6092e151
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1988,6 +1988,9 @@ void WebContents::MessageHost(const std::string& channel,
void WebContents::UpdateDraggableRegions(
std::vector<mojom::DraggableRegionPtr> regions) {
if (owner_window() && owner_window()->has_frame())
return;
draggable_region_ = DraggableRegionsToSkRegion(regions);
}