Undo 15810 again; it messed up the window lists (as WindowLayer::InWorkspace() and WindowLayer::Workspaces() must be in sync).

Might reveal other problems in this area, that are worth looking into.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15823 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-01-03 16:12:52 +00:00
parent 696e72709e
commit a342fafcf4
1 changed files with 1 additions and 2 deletions

View File

@ -1402,8 +1402,7 @@ Desktop::AddWindow(WindowLayer *window)
window->SetWorkspaces(workspace_to_workspaces(CurrentWorkspace())); window->SetWorkspaces(workspace_to_workspaces(CurrentWorkspace()));
} else { } else {
// subset windows are visible on all workspaces their subset is on // subset windows are visible on all workspaces their subset is on
// (but floating windows default to not visible) window->SetWorkspaces(window->SubsetWorkspaces());
window->SetWorkspaces(window->IsModal() ? window->SubsetWorkspaces() : 0);
} }
_ChangeWindowWorkspaces(window, 0, window->Workspaces()); _ChangeWindowWorkspaces(window, 0, window->Workspaces());