DescriptionFixes a minor rearrangement of rectangles for display settings.
Previously the display rectangles are placed by display object's
x and y, with scaling. However, due to scaling the value and
flooring the scaled result, there could be 1px gap from the
expected position, therefore just clicking may cause sending
the display layout change which causes fade-out and fade-in.
This 1px gap has been there, it's tiny, but it's noticeable.
Therefore this CL rewrites the layouting of display rectangles as
follows:
- first, place the primary display
- then look up the secondary display which is sticking to the
primary display
This way there cannot be any gaps, therefore doesn't cause any
weird fade-outs.
BUG=386401
R=xiyuan@chromium.org, oshima@chromium.org
TEST=manually
Committed: https://crrev.com/5b0e1a0903ac26a85ceb51bb79b5e4c77d1ff488
Cr-Commit-Position: refs/heads/master@{#304974}
Patch Set 1 #
Total comments: 4
Patch Set 2 : fix #Messages
Total messages: 7 (1 generated)
|