| Index: athena/wm/title_drag_controller.cc
|
| diff --git a/athena/wm/title_drag_controller.cc b/athena/wm/title_drag_controller.cc
|
| index 36bf82383566d9877f05c808e36f133a11aded4d..b41b7fd07f74d2cde97ea6ab43ffa395a1812d74 100644
|
| --- a/athena/wm/title_drag_controller.cc
|
| +++ b/athena/wm/title_drag_controller.cc
|
| @@ -60,15 +60,15 @@ void TitleDragController::OnTransitionEnd(aura::Window* window, bool complete) {
|
| weak_ptr_.InvalidateWeakPtrs();
|
| if (!tracker_.Contains(window))
|
| window = NULL;
|
| - if (complete && window && wm::IsActiveWindow(window))
|
| - delegate_->OnTitleDragCompleted(window);
|
| - else
|
| - delegate_->OnTitleDragCanceled(window);
|
| shadow_.reset();
|
| if (window) {
|
| window->SetTransform(gfx::Transform());
|
| tracker_.Remove(window);
|
| }
|
| + if (complete && window && wm::IsActiveWindow(window))
|
| + delegate_->OnTitleDragCompleted(window);
|
| + else
|
| + delegate_->OnTitleDragCanceled(window);
|
| }
|
|
|
| void TitleDragController::OnGestureEvent(ui::GestureEvent* gesture) {
|
|
|