Commit 5cfa8647 authored by oshima@chromium.org's avatar oshima@chromium.org

Activate the workspace that dragged window has landed.

BUG=none
TEST=none


Review URL: http://codereview.chromium.org/8414017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107769 0039d316-1c4b-4281-b951-d872f2087c98
parent 78ebf6c4
...@@ -74,9 +74,10 @@ void DefaultContainerLayoutManager::EndMove( ...@@ -74,9 +74,10 @@ void DefaultContainerLayoutManager::EndMove(
// TODO(oshima): finish moving window between workspaces. // TODO(oshima): finish moving window between workspaces.
AutoReset<bool> reset(&ignore_calculate_bounds_, true); AutoReset<bool> reset(&ignore_calculate_bounds_, true);
drag_window_ = NULL; drag_window_ = NULL;
Workspace* workspace = workspace_manager_->GetActiveWorkspace();
if (workspace) Workspace* workspace = workspace_manager_->FindBy(drag);
workspace->Layout(NULL, NULL); workspace->Layout(NULL, NULL);
workspace->Activate();
workspace_manager_->SetOverview(false); workspace_manager_->SetOverview(false);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment