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

Unified Diff: ash/wm/workspace/workspace_manager.cc

Issue 9557005: Makes sure switching workspaces only animations windows that want to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months 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_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_manager.cc
diff --git a/ash/wm/workspace/workspace_manager.cc b/ash/wm/workspace/workspace_manager.cc
index 098c4e91a52de89c20abc818d9360a171af33f14..b16a35f556e4efa2102a9c743cc18c43349ad90a 100644
--- a/ash/wm/workspace/workspace_manager.cc
+++ b/ash/wm/workspace/workspace_manager.cc
@@ -280,7 +280,8 @@ void WorkspaceManager::SetWindowLayerVisibility(
bool value) {
for (size_t i = 0; i < windows.size(); ++i) {
ui::Layer* layer = windows[i]->layer();
- if (layer) {
+ // Only show the layer for windows that want to be visible.
+ if (layer && (!value || windows[i]->TargetVisibility())) {
windows[i]->SetProperty(aura::client::kAnimationsDisabledKey,
change_type == DONT_ANIMATE);
bool update_layer = true;
« no previous file with comments | « no previous file | ash/wm/workspace/workspace_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698