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

Unified Diff: ash/wm/workspace_controller.cc

Issue 14222019: Trying to activate a window in a workspace other than the current is ignored while a system modal d… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: reduced Created 7 years, 8 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
Index: ash/wm/workspace_controller.cc
diff --git a/ash/wm/workspace_controller.cc b/ash/wm/workspace_controller.cc
index c880663ac8c3c7de9b4c9084f953f65a5a55f842..590abb16cbc4f8f88b29a08ad264ea80174599e7 100644
--- a/ash/wm/workspace_controller.cc
+++ b/ash/wm/workspace_controller.cc
@@ -4,6 +4,7 @@
#include "ash/wm/workspace_controller.h"
+#include "ash/shell.h"
#include "ash/wm/window_util.h"
#include "ash/wm/workspace/workspace_manager.h"
#include "ui/aura/client/activation_client.h"
@@ -58,5 +59,17 @@ void WorkspaceController::OnWindowActivated(aura::Window* gained_active,
}
}
+void WorkspaceController::OnAttemptToReactivateWindow(
+ aura::Window* request_active, aura::Window* actual_active) {
sky 2013/04/23 21:36:42 same comment here.
sschmitz 2013/04/24 01:23:43 Done.
+ if (!request_active || request_active == actual_active)
sky 2013/04/23 21:36:42 Do we really pass in NULL in some case?
sschmitz 2013/04/24 01:23:43 Not anymore. Done.
+ return;
+ if (ash::Shell::GetInstance()->IsSystemModalWindowOpen()) {
+ // Handle the case that the requested window was not activated because
sky 2013/04/23 21:36:42 How about something like: While a system model dia
sschmitz 2013/04/24 01:23:43 Done.
+ // of a system model window. We still want to activate the workspace
+ // of the requested window.
+ workspace_manager_->SetActiveWorkspaceByWindow(request_active);
+ }
+}
+
} // namespace internal
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698