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

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

Issue 2330093003: Fix adding displays in mustash. (Closed)
Patch Set: Created 4 years, 3 months 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
« no previous file with comments | « no previous file | services/ui/ws/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index f93023e760f6d12297b55f36060382a8811c90e2..8a27a90000c6f03588569b0d178514e647c054c6 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -250,6 +250,7 @@ void Display::InitWindowManagerDisplayRootsIfNecessary() {
} else {
CreateWindowManagerDisplayRootsFromFactories();
}
+ display_manager()->OnDisplayUpdate(this);
}
void Display::CreateWindowManagerDisplayRootsFromFactories() {
@@ -322,7 +323,8 @@ void Display::OnViewportMetricsChanged(const ViewportMetrics& old_metrics,
for (auto& pair : window_manager_display_root_map_)
pair.second->root()->SetBounds(new_bounds);
}
- display_manager()->OnDisplayUpdate(this);
+ if (init_called_)
+ display_manager()->OnDisplayUpdate(this);
}
void Display::OnCompositorFrameDrawn() {
« no previous file with comments | « no previous file | services/ui/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698