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 9f58b13dec0f9097a62e985989dccaf635e05d5e..05323aae776e4e08a06e9acbd9865628527f89a9 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 |
@@ -917,9 +917,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()); |
+ } |
} |
//////////////////////////////////////////////////////////////////////////////// |