Description[Ash] ShapedAppWindowTargeter treats empty shapes as empty hit test masks.
Previously, setShape({'rects': []}) or
setShape({'rects': [{left:0, width:0, top:0, height:1}]})
would make the window completely transparent, but still capture input.
This was because ShapedAppWindowTargeter::GetHitTestMask returned
false if the shape was empty. It now returns false only if the shape
is NULL.
BUG=417014
Committed: https://crrev.com/c0c8e095397d530fd31f7a77d6e39f39bd72b436
Cr-Commit-Position: refs/heads/master@{#296975}
Patch Set 1 #Patch Set 2 : |had_shape| should use the same logic #Patch Set 3 : Update GetWidgetHitTestMask. #Patch Set 4 : Treat empty shapes the same as normal shapes. #Messages
Total messages: 20 (6 generated)
|