| Index: ui/aura/root_window_host_linux.cc
|
| diff --git a/ui/aura/root_window_host_linux.cc b/ui/aura/root_window_host_linux.cc
|
| index 419cbb8113371f7385a3690ce3e390e3f3807745..fe64054db375980d39d98663f3420643dc87e3f9 100644
|
| --- a/ui/aura/root_window_host_linux.cc
|
| +++ b/ui/aura/root_window_host_linux.cc
|
| @@ -816,7 +816,7 @@ void RootWindowHostLinux::SetBounds(const gfx::Rect& bounds) {
|
| // size, which is in DIP, changes when the scale changes.
|
| float current_scale = root_window_->compositor()->device_scale_factor();
|
| float new_scale =
|
| - gfx::Screen::GetMonitorNearestWindow(root_window_).device_scale_factor();
|
| + gfx::Screen::GetDisplayNearestWindow(root_window_).device_scale_factor();
|
| bool size_changed = bounds_.size() != bounds.size() ||
|
| current_scale != new_scale;
|
|
|
|
|