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

Unified Diff: ui/aura/desktop.cc

Issue 8565015: Avoid trying to layout the desktop when its size is set to 0x0 when minimized on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « ui/aura/desktop.h ('k') | ui/aura/desktop_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/desktop.cc
===================================================================
--- ui/aura/desktop.cc (revision 109889)
+++ ui/aura/desktop.cc (working copy)
@@ -323,12 +323,14 @@
}
void Desktop::SetActiveWindow(Window* window, Window* to_focus) {
+ if (!window)
sky 2011/11/14 21:12:21 Don't we use this to clear the active window? Say
+ 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)
« no previous file with comments | « ui/aura/desktop.h ('k') | ui/aura/desktop_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698