From a342fafcf43733b2305e9b31267154571806d8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 3 Jan 2006 16:12:52 +0000 Subject: [PATCH] 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 --- src/servers/app/Desktop.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/servers/app/Desktop.cpp b/src/servers/app/Desktop.cpp index 7849952cc9..f0c6d2eea0 100644 --- a/src/servers/app/Desktop.cpp +++ b/src/servers/app/Desktop.cpp @@ -1402,8 +1402,7 @@ Desktop::AddWindow(WindowLayer *window) window->SetWorkspaces(workspace_to_workspaces(CurrentWorkspace())); } else { // subset windows are visible on all workspaces their subset is on - // (but floating windows default to not visible) - window->SetWorkspaces(window->IsModal() ? window->SubsetWorkspaces() : 0); + window->SetWorkspaces(window->SubsetWorkspaces()); } _ChangeWindowWorkspaces(window, 0, window->Workspaces());