Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: services/ui/ws/display_manager.cc

Issue 2491493004: Fix root ServerWindow size. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/ui/ws/display_manager.cc
diff --git a/services/ui/ws/display_manager.cc b/services/ui/ws/display_manager.cc
index 614c99ecd3e6bed7accfdb26ebccafa1e6b36c46..7749ae126fc41489029f6e28d829f26bb1373f25 100644
--- a/services/ui/ws/display_manager.cc
+++ b/services/ui/ws/display_manager.cc
@@ -209,7 +209,8 @@ void DisplayManager::OnDisplayModified(
factory->window_tree()->OnWmDisplayModified(display->ToDisplay());
}
- display->OnViewportMetricsChanged(metrics);
+ // Change the root ServerWindow size after sending IPC to WM.
+ display->UpdateRootWindowSize(metrics.pixel_size);
OnDisplayUpdate(display);
}

Powered by Google App Engine
This is Rietveld 408576698