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:
@@ -1246,7 +1246,7 @@ WindowLayer::InWorkspace(int32 index) const
|
|||||||
// The application doesn't seem to have any other windows
|
// The application doesn't seem to have any other windows
|
||||||
// open or visible - but we'd like to see modal windows
|
// open or visible - but we'd like to see modal windows
|
||||||
// anyway, at least when they are first opened.
|
// anyway, at least when they are first opened.
|
||||||
return index == ServerWindow()->App()->InitialWorkspace();
|
return index == fDesktop->CurrentWorkspace();
|
||||||
}
|
}
|
||||||
return (workspaces & (1UL << index)) != 0;
|
return (workspaces & (1UL << index)) != 0;
|
||||||
}
|
}
|
||||||
@@ -1441,7 +1441,7 @@ WindowLayer::SubsetWorkspaces() const
|
|||||||
// The application doesn't seem to have any other windows
|
// The application doesn't seem to have any other windows
|
||||||
// open or visible - but we'd like to see modal windows
|
// open or visible - but we'd like to see modal windows
|
||||||
// anyway, at least when they are first opened.
|
// anyway, at least when they are first opened.
|
||||||
return 1UL << ServerWindow()->App()->InitialWorkspace();
|
return 1UL << fDesktop->CurrentWorkspace();
|
||||||
}
|
}
|
||||||
return workspaces;
|
return workspaces;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user