Added TODO about why the implementation of StoreConfiguratoin() is broken

if it were ever called for an inactive workspace, as our BScreen API in theory
allows you to do (not the BeOS API).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31863 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2009-07-28 21:22:54 +00:00
parent b77d5a6cbf
commit 390b0f9486
+4
View File
@@ -1161,6 +1161,10 @@ Desktop::ScreenChanged(Screen* screen, bool makeDefault)
status_t
Desktop::StoreConfiguration(int32 workspace)
{
// TODO: This only works because StoreConfiguration is never called
// for an inactive workspace. fVirtualScreen has the screen mode
// of the current workspace.
if (workspace >= 0 && workspace < fSettings->WorkspacesCount()) {
// store settings
BMessage settings;