| Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
| diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
| index f79b3c42baf5477962e15f31e634c799c5c5eb2d..465d8bbe093b6bd6e310886a6e6a008a4be3ba1d 100644
|
| --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
| +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
| @@ -912,9 +912,10 @@ void DesktopWindowTreeHostWin::HandleWindowSizeChanged() {
|
| // changed (can occur on Windows 10 when snapping a window to the side of
|
| // the screen). In that case do a resize to the current size to reenable
|
| // swaps.
|
| - if (compositor())
|
| + if (compositor()) {
|
| compositor()->SetScaleAndSize(compositor()->device_scale_factor(),
|
| - compositor()->size());
|
| + GetBounds().size());
|
| + }
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|