Index: ash/wm/window_cycle_controller.cc |
diff --git a/ash/wm/window_cycle_controller.cc b/ash/wm/window_cycle_controller.cc |
index 03acc9f9809cc3357c935897ae71359be655a87a..157b09df2abd8c0e4493be24c344f0b0eec7c9eb 100644 |
--- a/ash/wm/window_cycle_controller.cc |
+++ b/ash/wm/window_cycle_controller.cc |
@@ -74,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() && |
- !WmShell::Get()->IsSystemModalWindowOpen(); |
+ !WmShell::Get()->IsSystemModalWindowOpen() && |
+ !WmShell::Get()->IsPinned(); |
} |
void WindowCycleController::HandleCycleWindow(Direction direction) { |