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

Unified Diff: ash/wm/overview/window_selector_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: . 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/overview/window_selector_controller.cc
diff --git a/ash/wm/overview/window_selector_controller.cc b/ash/wm/overview/window_selector_controller.cc
index a148357669c2265ef22e60a3533548bcdf9440e1..fcbb9ae7b85403e5bbba41e0c077922cf9869f1c 100644
--- a/ash/wm/overview/window_selector_controller.cc
+++ b/ash/wm/overview/window_selector_controller.cc
@@ -72,18 +72,6 @@ bool WindowSelectorController::IsSelecting() {
void WindowSelectorController::OnWindowSelected(aura::Window* window) {
window_selector_.reset();
-
- // If there is a fullscreen window on this display and it was not selected
- // it should exit fullscreen mode.
oshima 2013/12/03 19:04:57 is it difficult to keep it fullscreen? It'd be nic
flackr 2013/12/03 19:08:25 That's what the code will do after this change. Th
- internal::RootWindowController* controller =
- internal::GetRootWindowController(window->GetRootWindow());
- aura::Window* fullscreen_window = NULL;
- if (controller)
- fullscreen_window = controller->GetTopmostFullscreenWindow();
- if (fullscreen_window && fullscreen_window != window) {
- wm::GetWindowState(fullscreen_window)->ToggleFullscreen();
- }
-
wm::ActivateWindow(window);
last_selection_time_ = base::Time::Now();
Shell::GetInstance()->mru_window_tracker()->SetIgnoreActivations(false);

Powered by Google App Engine
This is Rietveld 408576698