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

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

Issue 2833093002: WIP: simplified display management in ash (Closed)
Patch Set: x Created 3 years, 8 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 | « services/ui/display/screen_manager_forwarding.cc ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index d012b886dc2f0bc50ecc2246398ff6bcdc5aef36..140df0b5c308036fd267acd92eea38d159d62dae 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -826,7 +826,10 @@ void WindowServer::OnSurfaceCreated(const cc::SurfaceInfo& surface_info) {
window_paint_callback_.Run(window);
auto* display = display_manager_->GetDisplayContaining(window);
- if (display && window == display->GetActiveRootWindow()) {
+ const bool match1 = (display && window == display->GetActiveRootWindow());
+ const bool match2 =
+ (display && window->parent() == display->GetActiveRootWindow());
+ if (match1 || match2) {
// A new surface for a WindowManager root has been created. This is a
// special case because ServerWindows created by the WindowServer are not
// part of a WindowTree. Send the SurfaceId directly to FrameGenerator and
« no previous file with comments | « services/ui/display/screen_manager_forwarding.cc ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698