From cf48970b0f89ff5183c5f66f7ca7880ea0cb8625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 3 Jan 2006 11:55:15 +0000 Subject: [PATCH] Initial workspace is a bad idea after all - why should debug alerts always open on workspace 1 just because the system booted in that workspace? :-) Now modal windows are opened on the current workspace. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15813 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/WindowLayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/app/WindowLayer.cpp b/src/servers/app/WindowLayer.cpp index e9c7aa5c26..8b7819f0ca 100644 --- a/src/servers/app/WindowLayer.cpp +++ b/src/servers/app/WindowLayer.cpp @@ -1246,7 +1246,7 @@ WindowLayer::InWorkspace(int32 index) const // The application doesn't seem to have any other windows // open or visible - but we'd like to see modal windows // anyway, at least when they are first opened. - return index == ServerWindow()->App()->InitialWorkspace(); + return index == fDesktop->CurrentWorkspace(); } return (workspaces & (1UL << index)) != 0; } @@ -1441,7 +1441,7 @@ WindowLayer::SubsetWorkspaces() const // The application doesn't seem to have any other windows // open or visible - but we'd like to see modal windows // anyway, at least when they are first opened. - return 1UL << ServerWindow()->App()->InitialWorkspace(); + return 1UL << fDesktop->CurrentWorkspace(); } return workspaces; }