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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user