summaryrefslogtreecommitdiffstats
path: root/ash/wm/activation_controller.cc
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-28 23:16:18 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-28 23:16:18 +0000
commitaa29f31dd0fb2446ced9d58f5476a5cac8ebb9f2 (patch)
tree3ce2e7caa62a2892baf3656056d8e26d5214a43d /ash/wm/activation_controller.cc
parent824b02d9af091a619eeabb8562e7025cfac22545 (diff)
downloadchromium_src-aa29f31dd0fb2446ced9d58f5476a5cac8ebb9f2.zip
chromium_src-aa29f31dd0fb2446ced9d58f5476a5cac8ebb9f2.tar.gz
chromium_src-aa29f31dd0fb2446ced9d58f5476a5cac8ebb9f2.tar.bz2
ash: Don't pick minimized window for replace active window.
A side effect of r129360 is that minimized window would be picked up as the next active window. This CL fixes the problem by explicitly skipping minimized window in GetTopmostWindowToActivateInContainer. BUG=none. TEST=aura_shell_unittests should pass. Review URL: http://codereview.chromium.org/9877005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129515 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/activation_controller.cc')
-rw-r--r--ash/wm/activation_controller.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ash/wm/activation_controller.cc b/ash/wm/activation_controller.cc
index cfe74f5..5054256 100644
--- a/ash/wm/activation_controller.cc
+++ b/ash/wm/activation_controller.cc
@@ -295,7 +295,9 @@ aura::Window* ActivationController::GetTopmostWindowToActivateInContainer(
container->children().rbegin();
i != container->children().rend();
++i) {
- if (*i != ignore && CanActivateWindowWithEvent(*i, NULL))
+ if (*i != ignore &&
+ CanActivateWindowWithEvent(*i, NULL) &&
+ !wm::IsWindowMinimized(*i))
return *i;
}
return NULL;