Index: ash/wm/window_cycle_controller.cc |
diff --git a/ash/wm/window_cycle_controller.cc b/ash/wm/window_cycle_controller.cc |
index c24b9e9ecd88885c9ce709cda7c186e9447f6bf4..b2060c5f1a942edba40cf63b1c74b5b505e0ebe9 100644 |
--- a/ash/wm/window_cycle_controller.cc |
+++ b/ash/wm/window_cycle_controller.cc |
@@ -6,6 +6,7 @@ |
#include "ash/common/session/session_state_delegate.h" |
#include "ash/common/wm/mru_window_tracker.h" |
+#include "ash/common/wm_shell.h" |
#include "ash/metrics/user_metrics_recorder.h" |
#include "ash/shell.h" |
#include "ash/wm/window_cycle_list.h" |
@@ -73,7 +74,8 @@ bool WindowCycleController::CanCycle() { |
// Don't allow window cycling if the screen is locked or a modal dialog is |
// open. |
return !Shell::GetInstance()->session_state_delegate()->IsScreenLocked() && |
- !Shell::GetInstance()->IsSystemModalWindowOpen(); |
+ !Shell::GetInstance()->IsSystemModalWindowOpen() && |
+ !WmShell::Get()->IsPinned(); |
} |
void WindowCycleController::HandleCycleWindow(Direction direction) { |