Index: ash/wm/dock/docked_window_layout_manager.cc |
diff --git a/ash/wm/dock/docked_window_layout_manager.cc b/ash/wm/dock/docked_window_layout_manager.cc |
index e8f24f79a0264939e297a05390dc77dbf2414f98..cdd784524944e1ba41751cefb7c91edcb486099e 100644 |
--- a/ash/wm/dock/docked_window_layout_manager.cc |
+++ b/ash/wm/dock/docked_window_layout_manager.cc |
@@ -589,7 +589,7 @@ void DockedWindowLayoutManager::OnWindowShowTypeChanged( |
// Reparenting changes the source bounds for the animation if a window is |
// visible so hide it here and show later when it is already in the desktop. |
UndockWindow(window); |
- } else { |
+ } else if (old_type == wm::SHOW_TYPE_MINIMIZED) { |
RestoreDockedWindow(window_state); |
} |
} |