Index: ash/wm/drag_details.cc |
diff --git a/ash/wm/drag_details.cc b/ash/wm/drag_details.cc |
index f94531fcb99a443948c5c9b8c0c2cb4d60cc06f5..06829f0abd20860582d55daeed5109ccd5a05928 100644 |
--- a/ash/wm/drag_details.cc |
+++ b/ash/wm/drag_details.cc |
@@ -62,10 +62,11 @@ DragDetails::DragDetails(aura::Window* window, |
should_attach_to_shelf(window->type() == ui::wm::WINDOW_TYPE_PANEL && |
wm::GetWindowState(window)->panel_attached()) { |
wm::WindowState* window_state = wm::GetWindowState(window); |
- if (window_state->IsNormalShowState() && |
+ if (window_state->IsNormalOrSnapped() && |
window_state->HasRestoreBounds() && |
- window_component == HTCAPTION) |
+ window_component == HTCAPTION) { |
restore_bounds = window_state->GetRestoreBoundsInScreen(); |
+ } |
} |
DragDetails::~DragDetails() { |