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

Unified Diff: ash/wm/session_state_animator.cc

Issue 11280188: Fix focus loss on partial lock. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Review fixes Created 8 years, 1 month 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
« no previous file with comments | « no previous file | ash/wm/workspace/workspace_animations.h » ('j') | ash/wm/workspace/workspace_animations.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/session_state_animator.cc
diff --git a/ash/wm/session_state_animator.cc b/ash/wm/session_state_animator.cc
index b082c986f6e0d847dfd8fc39c5718999b06bb683..51bfc53d40cc6585f68bfa22f30d3133b6791f9d 100644
--- a/ash/wm/session_state_animator.cc
+++ b/ash/wm/session_state_animator.cc
@@ -161,6 +161,7 @@ void HideWindow(aura::Window* window,
details.animate_scale = true;
details.animate_opacity = true;
details.duration = duration;
+ details.can_be_cancelled = true;
HideWorkspace(window, details);
// A bit of a dirty trick: we need to catch the end of the animation we don't
// control. So we use two facts we know: which animator will be used and the
« no previous file with comments | « no previous file | ash/wm/workspace/workspace_animations.h » ('j') | ash/wm/workspace/workspace_animations.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698