| Index: components/mus/ws/default_access_policy.cc
|
| diff --git a/components/mus/ws/default_access_policy.cc b/components/mus/ws/default_access_policy.cc
|
| index 615b8dca7ffcc8488f367f7452f448ab27c5a6a6..12334bcc1b79d3691534a1179eec6aa7e5b140d3 100644
|
| --- a/components/mus/ws/default_access_policy.cc
|
| +++ b/components/mus/ws/default_access_policy.cc
|
| @@ -51,6 +51,11 @@ bool DefaultAccessPolicy::CanRemoveTransientWindowFromParent(
|
| WasCreatedByThisConnection(window->transient_parent()));
|
| }
|
|
|
| +bool DefaultAccessPolicy::CanSetAsModal(const ServerWindow* window) const {
|
| + return delegate_->HasRootForAccessPolicy(window) ||
|
| + WasCreatedByThisConnection(window);
|
| +}
|
| +
|
| bool DefaultAccessPolicy::CanReorderWindow(
|
| const ServerWindow* window,
|
| const ServerWindow* relative_window,
|
|
|