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

Unified Diff: athena/wm/window_overview_mode.cc

Issue 543443002: Set windows to be fully opaque upon leaving overview mode in Athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/wm/window_overview_mode.cc
diff --git a/athena/wm/window_overview_mode.cc b/athena/wm/window_overview_mode.cc
index b34991cf82d7a7341ac17c77d016f1cda20e0dc9..90c7c5804c7739113c5b91d50b163827935e0a50 100644
--- a/athena/wm/window_overview_mode.cc
+++ b/athena/wm/window_overview_mode.cc
@@ -95,6 +95,10 @@ void RestoreWindowState(aura::Window* window,
base::Bind(&HideWindowIfNotVisible, window, split_view_controller)));
window->SetTransform(gfx::Transform());
+
+ // Reset the window opacity in case the user is dragging a window.
+ window->layer()->SetOpacity(1.0f);
+
wm::SetShadowType(window, wm::SHADOW_TYPE_NONE);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698