Descriptionevents: Fix event-targeting for transformed windows.
Applying the transforms on a Window's bounds does not give the correct transformed
bounds of the window in its parent's coordinate system. For example, a Window with
size 300x200 at position 20,10 and scaled at 50% has bounds (20, 10, 150, 100), and
not (10, 5, 150, 100). So remove this transform from the window-targeting code, and
instead convert the event's location to be in the child Window's coordinate system
when doing hit-testing.
This fixes selecting windows when in overview mode.
BUG=339834
R=sky@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252257
Patch Set 1 #Patch Set 2 : self-nits #
Total comments: 3
Messages
Total messages: 5 (0 generated)
|