diff options
Diffstat (limited to 'ash/wm/window_cycle_list.cc')
-rw-r--r-- | ash/wm/window_cycle_list.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ash/wm/window_cycle_list.cc b/ash/wm/window_cycle_list.cc index b197dbf..5e7480d 100644 --- a/ash/wm/window_cycle_list.cc +++ b/ash/wm/window_cycle_list.cc @@ -33,12 +33,8 @@ WindowCycleList::~WindowCycleList() { } void WindowCycleList::Step(Direction direction) { - // Ensure we have at least one window to step to. - if (windows_.empty()) - return; - - // Don't cycle through a list of one. - if (windows_.size() == 1) + // Ensure we have more than one window to step to. + if (windows_.size() <= 1) return; if (current_index_ == -1) { |