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

Unified Diff: ash/wm/workspace_controller.cc

Issue 100903002: Ignore fullscreen windows which are behind other windows for fullscreen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add multi-monitor test. Created 7 years 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
Index: ash/wm/workspace_controller.cc
diff --git a/ash/wm/workspace_controller.cc b/ash/wm/workspace_controller.cc
index 8d378581401f3bc96bfff2a02e09dc97dcd21377..9d9966c5f3401f61b1bcff8fc7f456d1e6602fba 100644
--- a/ash/wm/workspace_controller.cc
+++ b/ash/wm/workspace_controller.cc
@@ -74,7 +74,8 @@ WorkspaceWindowState WorkspaceController::GetWindowState() const {
// An untracked window may still be fullscreen so we keep iterating when
// we hit a maximized window.
has_maximized_window = true;
- } else if (window_state->IsFullscreen()) {
+ } else if (*i == windows.back() && window_state->IsFullscreen()) {
flackr 2013/12/03 22:05:55 Hang on, this check for topmost doesn't seem to be
+ // Only enter the full screen state if the topmost window is fullscreen.
return WORKSPACE_WINDOW_STATE_FULL_SCREEN;
}
if (!window_overlaps_launcher && (*i)->bounds().Intersects(shelf_bounds))

Powered by Google App Engine
This is Rietveld 408576698