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:
parent
696e72709e
commit
a342fafcf4
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue