| Index: mash/wm/root_window_controller.cc
|
| diff --git a/mash/wm/root_window_controller.cc b/mash/wm/root_window_controller.cc
|
| index 53356d480888f6b1c5434e08ca7fab8f9a6e353f..4d953fd54e2bcc228f37eb7dec14281d6f736e16 100644
|
| --- a/mash/wm/root_window_controller.cc
|
| +++ b/mash/wm/root_window_controller.cc
|
| @@ -73,7 +73,9 @@ mus::Window* RootWindowController::GetWindowForContainer(
|
| }
|
|
|
| bool RootWindowController::WindowIsContainer(const mus::Window* window) const {
|
| - return window && window->parent() == root_;
|
| + return window &&
|
| + window->local_id() > ContainerToLocalId(mojom::Container::ROOT) &&
|
| + window->local_id() < ContainerToLocalId(mojom::Container::COUNT);
|
| }
|
|
|
| mus::WindowManagerClient* RootWindowController::window_manager_client() {
|
|
|