Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ash / wm / drag_details.cc
index e0ea753..67bbedc 100644 (file)
@@ -62,7 +62,7 @@ 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->IsNormalOrSnapped() &&
+  if ((window_state->IsNormalOrSnapped() || window_state->IsDocked()) &&
       window_state->HasRestoreBounds() &&
       window_component == HTCAPTION) {
     restore_bounds = window_state->GetRestoreBoundsInScreen();