summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc5
1 files changed, 3 insertions, 2 deletions
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 05323aa..fa9ea48 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
@@ -918,8 +918,9 @@ void DesktopWindowTreeHostWin::HandleWindowSizeChanged() {
// the screen). In that case do a resize to the current size to reenable
// swaps.
if (compositor()) {
- compositor()->SetScaleAndSize(compositor()->device_scale_factor(),
- GetBounds().size());
+ compositor()->SetScaleAndSize(
+ compositor()->device_scale_factor(),
+ message_handler_->GetClientAreaBounds().size());
}
}