| Index: athena/home/home_card_impl.cc
|
| diff --git a/athena/home/home_card_impl.cc b/athena/home/home_card_impl.cc
|
| index c96af41085e6b4586e2eba5341572e74ab448be9..12f973ee1f5ca53597c83007cae27ea553c318e3 100644
|
| --- a/athena/home/home_card_impl.cc
|
| +++ b/athena/home/home_card_impl.cc
|
| @@ -197,7 +197,7 @@ class HomeCardView : public views::WidgetDelegateView {
|
| virtual bool OnMousePressed(const ui::MouseEvent& event) override {
|
| if (HomeCard::Get()->GetState() == HomeCard::VISIBLE_MINIMIZED &&
|
| event.IsLeftMouseButton() && event.GetClickCount() == 1) {
|
| - athena::WindowManager::Get()->ToggleOverview();
|
| + athena::WindowManager::Get()->EnterOverview();
|
| return true;
|
| }
|
| return false;
|
| @@ -379,7 +379,10 @@ void HomeCardImpl::OnGestureEnded(State final_state, bool is_fling) {
|
| if (state_ != final_state &&
|
| (state_ == VISIBLE_MINIMIZED || final_state == VISIBLE_MINIMIZED)) {
|
| SetState(final_state);
|
| - WindowManager::Get()->ToggleOverview();
|
| + if (WindowManager::Get()->IsOverviewModeActive())
|
| + WindowManager::Get()->ExitOverview();
|
| + else
|
| + WindowManager::Get()->EnterOverview();
|
| } else {
|
| state_ = final_state;
|
| // When the animation happens after a fling, EASE_IN_OUT would cause weird
|
|
|