Commit d5279079 authored by Mitsuru Oshima's avatar Mitsuru Oshima Committed by Commit Bot

Use GetAdjustedInsets to compute the insets for remote shell.

This is regression in crrev.com/c/1324092.

TBR=dcastagna@chromium.org

Bug: 906650
Test: Manually tested on slate.
Change-Id: I81c4250afd4e1aa1e588bea104d0225c17d038c1
Reviewed-on: https://chromium-review.googlesource.com/c/1342108
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609341}
parent a289922b
......@@ -664,7 +664,7 @@ class WaylandRemoteShell : public ash::TabletModeObserver,
for (const auto& display : screen->GetAllDisplays()) {
const gfx::Rect& bounds = display.bounds();
const gfx::Insets& insets = display.GetWorkAreaInsets();
const gfx::Insets& insets = GetAdjustedInsets(display);
double device_scale_factor = display.device_scale_factor();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment