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

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

Issue 2225523002: Correctly restore fullscreen window bounds when leaving overview mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Correctly restore fullscreen window bounds when leaving overview mode. Created 4 years, 4 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 cc487678aefec299e319a78f7f2b44293c87a825..b24142b14492ce3febf825e12b5aea27378d7c57 100644
--- a/ash/common/wm/overview/window_selector.cc
+++ b/ash/common/wm/overview/window_selector.cc
@@ -553,8 +553,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