Putting this handler in once again, as it looks it's used in InterfaceDefs.cpp, even if it's not working

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12595 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2005-05-08 06:21:48 +00:00
parent 8058130392
commit f3a544e820
1 changed files with 27 additions and 0 deletions

View File

@ -703,6 +703,33 @@ ServerApp::DispatchMessage(int32 code, LinkMsgReader &msg)
break; break;
} }
case AS_SET_SCREEN_MODE:
{
STRACE(("ServerApp %s: Set Screen Mode\n",fSignature.String()));
// Attached data
// 1) int32 workspace #
// 2) uint32 screen mode
// 3) bool make default
int32 index;
uint32 mode;
bool stick;
msg.Read<int32>(&index);
msg.Read<uint32>(&mode);
msg.Read<bool>(&stick);
RootLayer *root=desktop->ActiveRootLayer();
Workspace *workspace=root->WorkspaceAt(index);
if (!workspace) {
// apparently out of range or something, so we do nothing. :)
break;
}
// TODO: Add mode-setting code to Workspace class
//workspace->SetMode(mode,stick);
break;
}
case AS_ACTIVATE_WORKSPACE: case AS_ACTIVATE_WORKSPACE:
{ {
STRACE(("ServerApp %s: Activate Workspace UNIMPLEMETED\n",fSignature.String())); STRACE(("ServerApp %s: Activate Workspace UNIMPLEMETED\n",fSignature.String()));