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

Unified Diff: athena/wm/title_drag_controller.cc

Issue 468763002: athena: Fix switching windows with title-drag in split-view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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
Index: athena/wm/title_drag_controller.cc
diff --git a/athena/wm/title_drag_controller.cc b/athena/wm/title_drag_controller.cc
index 597f50a3c6de7e2b4521350696c18ce16e7a407e..766ea754aa49d6e6f6d11dedab421dcd488d6443 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) {

Powered by Google App Engine
This is Rietveld 408576698