Index: ash/wm/maximize_mode/maximize_mode_controller.cc |
diff --git a/ash/wm/maximize_mode/maximize_mode_controller.cc b/ash/wm/maximize_mode/maximize_mode_controller.cc |
index a969a91a07eca81e03746771c5cca4be2365de9f..05ea21600439bf442a66f0b14ee3db9900bb688b 100644 |
--- a/ash/wm/maximize_mode/maximize_mode_controller.cc |
+++ b/ash/wm/maximize_mode/maximize_mode_controller.cc |
@@ -298,6 +298,8 @@ void MaximizeModeController::HandleScreenRotation(const gfx::Vector3dF& lid) { |
maximize_mode_engaged) { |
SetDisplayRotation(display_manager, |
new_rotation); |
+ aura::Window* window(Shell::GetPrimaryRootWindow()); |
flackr
2014/05/26 20:36:45
Should get the internal display root window rather
|
+ window->layer()->GetAnimator()->StopAnimating(); |
} |
} |
@@ -308,6 +310,8 @@ void MaximizeModeController::SetDisplayRotation( |
&in_set_screen_rotation_, true); |
display_manager->SetDisplayRotation(gfx::Display::InternalDisplayId(), |
rotation); |
+ aura::Window* window(Shell::GetPrimaryRootWindow()); |
+ window->layer()->GetAnimator()->StopAnimating(); |
} |
} // namespace ash |