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
This commit is contained in:
parent
e97863686f
commit
cf48970b0f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user