fixed opening windows in other workspaces than the current, keeps the window lists valid

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15639 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-12-21 13:50:45 +00:00
parent 5659f08c68
commit 8f30140c63
1 changed files with 5 additions and 2 deletions

View File

@ -1377,8 +1377,11 @@ Desktop::SetWindowWorkspaces(WindowLayer* window, uint32 workspaces)
if (window->IsNormal() && workspaces == B_CURRENT_WORKSPACE)
workspaces = workspace_to_workspaces(CurrentWorkspace());
window->WorkspacesChanged(window->Workspaces(), workspaces);
_ChangeWindowWorkspaces(window, window->Workspaces(), workspaces);
uint32 oldWorkspaces = window->Workspaces();
window->WorkspacesChanged(oldWorkspaces, workspaces);
_ChangeWindowWorkspaces(window, oldWorkspaces, workspaces);
UnlockAllWindows();
}