summaryrefslogtreecommitdiffstats
path: root/ash/wm/dock/docked_window_layout_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/wm/dock/docked_window_layout_manager.cc')
-rw-r--r--ash/wm/dock/docked_window_layout_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/wm/dock/docked_window_layout_manager.cc b/ash/wm/dock/docked_window_layout_manager.cc
index 8b64ffb..19f92f1 100644
--- a/ash/wm/dock/docked_window_layout_manager.cc
+++ b/ash/wm/dock/docked_window_layout_manager.cc
@@ -577,7 +577,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);
}
}