| Index: ash/shelf/shelf_view.cc
|
| diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
|
| index 5e4f00255c028296401e34233c241e8af1e0803f..9e012423c2306311040bb1be5c9d32c2e6346060 100644
|
| --- a/ash/shelf/shelf_view.cc
|
| +++ b/ash/shelf/shelf_view.cc
|
| @@ -1669,6 +1669,13 @@ void ShelfView::ButtonPressed(views::Button* sender, const ui::Event& event) {
|
| if (!IsUsableEvent(event))
|
| return;
|
|
|
| + // Don't activate the item twice on double-click. Otherwise the window starts
|
| + // animating open due to the first click, then immediately minimizes due to
|
| + // the second click. The user most likely intended to open or minimize the
|
| + // item once, not do both.
|
| + if (event.flags() & ui::EF_IS_DOUBLE_CLICK)
|
| + return;
|
| +
|
| {
|
| ScopedTargetRootWindow scoped_target(
|
| sender->GetWidget()->GetNativeView()->GetRootWindow());
|
|
|