| Index: ash/wm/window_state.cc
|
| diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
|
| index 4bc1484f9b81e794f389f5daa5aa4ca381247462..ba7043362725587b8e26756e4ff8e7e4117de366 100644
|
| --- a/ash/wm/window_state.cc
|
| +++ b/ash/wm/window_state.cc
|
| @@ -19,6 +19,7 @@
|
| #include "ui/aura/window.h"
|
| #include "ui/aura/window_delegate.h"
|
| #include "ui/gfx/display.h"
|
| +#include "ui/views/corewm/transient_window_manager.h"
|
| #include "ui/views/corewm/window_util.h"
|
|
|
| namespace ash {
|
| @@ -138,7 +139,7 @@ bool WindowState::CanActivate() const {
|
| bool WindowState::CanSnap() const {
|
| if (!CanResize() ||
|
| window_->type() == aura::client::WINDOW_TYPE_PANEL ||
|
| - window_->transient_parent())
|
| + views::corewm::GetTransientParent(window_))
|
| return false;
|
| // If a window has a maximum size defined, snapping may make it too big.
|
| return window_->delegate() ? window_->delegate()->GetMaximumSize().IsEmpty() :
|
|
|