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

Unified Diff: ash/common/wm/overview/window_selector.cc

Issue 2338603002: Correctly restore fullscreen window bounds when leaving overview mode. (Closed)
Patch Set: Correctly restore fullscreen window bounds when leaving overview mode. Created 4 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: ash/common/wm/overview/window_selector.cc
diff --git a/ash/common/wm/overview/window_selector.cc b/ash/common/wm/overview/window_selector.cc
index c77b297a6508bc2e0600eadddaf46864f974e7a5..2f2103e9a4e99c11887b8f85de4b83d730e9aa3d 100644
--- a/ash/common/wm/overview/window_selector.cc
+++ b/ash/common/wm/overview/window_selector.cc
@@ -539,8 +539,12 @@ void WindowSelector::OnDisplayRemoved(const display::Display& display) {
void WindowSelector::OnDisplayMetricsChanged(const display::Display& display,
uint32_t metrics) {
- PositionWindows(/* animate */ false);
- RepositionTextFilterOnDisplayMetricsChange();
+ // If only the work area changes, there is no need to reposition windows in
+ // overview.
+ if (metrics != DISPLAY_METRIC_WORK_AREA) {
+ PositionWindows(/* animate */ false);
+ RepositionTextFilterOnDisplayMetricsChange();
+ }
}
void WindowSelector::OnWindowTreeChanged(WmWindow* window,
« 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