summaryrefslogtreecommitdiffstats
path: root/ui/aura/desktop.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 18:07:50 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 18:07:50 +0000
commitf4b96e2004f8f5c5b01c106fd1af3edbd5396162 (patch)
tree59d023e33a0485a7eca54ea2da30bbd6a456196d /ui/aura/desktop.cc
parent0faa0a2b09b6e540c87c605f3f9f63a8b085dd4f (diff)
downloadchromium_src-f4b96e2004f8f5c5b01c106fd1af3edbd5396162.zip
chromium_src-f4b96e2004f8f5c5b01c106fd1af3edbd5396162.tar.gz
chromium_src-f4b96e2004f8f5c5b01c106fd1af3edbd5396162.tar.bz2
Grab-bag:
. Avoid trying to layout the desktop when its size is set to 0x0 when minimized on Windows. . Don't show the "Default Browser" UI in Aura either. . Don't flash the active window inactive briefly when clicking on launcher items. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109966 Review URL: http://codereview.chromium.org/8565015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110116 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/desktop.cc')
-rw-r--r--ui/aura/desktop.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/aura/desktop.cc b/ui/aura/desktop.cc
index 010acf4..58eaec2e 100644
--- a/ui/aura/desktop.cc
+++ b/ui/aura/desktop.cc
@@ -323,12 +323,14 @@ void Desktop::OnHostResized(const gfx::Size& size) {
}
void Desktop::SetActiveWindow(Window* window, Window* to_focus) {
+ if (!window)
+ return;
// The stacking client may impose rules on what window configurations can be
// activated or deactivated.
- if (window && !stacking_client_->CanActivateWindow(window))
+ if (!stacking_client_->CanActivateWindow(window))
return;
// The window may not be activate-able.
- if (window && !window->CanActivate())
+ if (!window->CanActivate())
return;
// Nothing may actually have changed.
if (active_window_ == window)