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

Unified Diff: ash/common/wm/mru_window_tracker.cc

Issue 2258703002: Don't treat minimized windows as lower priority in MRU list (for Alt+Tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mash 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 | ash/common/wm/overview/window_grid.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/mru_window_tracker.cc
diff --git a/ash/common/wm/mru_window_tracker.cc b/ash/common/wm/mru_window_tracker.cc
index bea899b05510e9ba7afc26c051cc22143a55220c..68d0433b0db771e372499517f94506d51ccd1268 100644
--- a/ash/common/wm/mru_window_tracker.cc
+++ b/ash/common/wm/mru_window_tracker.cc
@@ -34,14 +34,6 @@ void AddTrackedWindows(WmWindow* root,
windows->insert(windows->end(), children.begin(), children.end());
}
-// Returns whether |w1| should be considered less recently used than |w2|. This
-// is used for a stable sort to move minimized windows to the LRU end of the
-// list.
-bool CompareWindowState(WmWindow* w1, WmWindow* w2) {
- return w1->GetWindowState()->IsMinimized() &&
- !w2->GetWindowState()->IsMinimized();
-}
-
// Returns a list of windows ordered by their stacking order.
// If |mru_windows| is passed, these windows are moved to the front of the list.
// It uses the given |should_include_window_predicate| to determine whether to
@@ -95,9 +87,6 @@ MruWindowTracker::WindowList BuildWindowListInternal(
}
}
- // Move minimized windows to the beginning (LRU end) of the list.
- std::stable_sort(windows.begin(), windows.end(), CompareWindowState);
-
// Window cycling expects the topmost window at the front of the list.
std::reverse(windows.begin(), windows.end());
« no previous file with comments | « no previous file | ash/common/wm/overview/window_grid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698