implemented server support for current_workspace(), just because I had enough of the 'blablah got unknown reply' message
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13102 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1773,7 +1773,23 @@ printf("ServerApp %s: AS_SCREEN_GET_MODE\n", fSignature.String());
|
||||
root->Unlock();
|
||||
break;
|
||||
}
|
||||
|
||||
case AS_CURRENT_WORKSPACE:
|
||||
{
|
||||
STRACE(("ServerApp %s: get current workspace\n", fSignature.String()));
|
||||
|
||||
// TODO: See above
|
||||
RootLayer *root = gDesktop->ActiveRootLayer();
|
||||
root->Lock();
|
||||
|
||||
fLink.StartMessage(SERVER_TRUE);
|
||||
fLink.Attach<int32>(root->ActiveWorkspaceIndex());
|
||||
fLink.Flush();
|
||||
|
||||
root->Unlock();
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
printf("ServerApp %s received unhandled message code offset %s\n",
|
||||
fSignature.String(), MsgCodeToBString(code).String());
|
||||
|
||||
Reference in New Issue
Block a user