Messaging fixes - removed inappropriate BSession use and converted to PortMessage and PortLink as necessary.

Life sucks when you can't sleep. :(


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5601 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2003-12-07 05:40:51 +00:00
parent 60c2633d9f
commit ab21b1ec0c
3 changed files with 336 additions and 327 deletions
+14 -14
View File
@@ -414,28 +414,28 @@ void ServerApp::_DispatchMessage(PortMessage *msg)
int32 token;
port_id sendPort;
port_id looperPort;
port_id replyport;
char *title;
msg->Read<BRect>( &frame );
msg->Read<int32>( (int32*)&look );
msg->Read<int32>( (int32*)&feel );
msg->Read<int32>( (int32*)&flags );
msg->Read<int32>( (int32*)&wkspaces );
msg->Read<int32>( &token );
msg->Read<port_id>( &sendPort );
msg->Read<port_id>( &looperPort );
msg->ReadString( &title );
msg->Read<BRect>(&frame);
msg->Read<int32>((int32*)&look);
msg->Read<int32>((int32*)&feel);
msg->Read<int32>((int32*)&flags);
msg->Read<int32>((int32*)&wkspaces);
msg->Read<int32>(&token);
msg->Read<port_id>(&sendPort);
msg->Read<port_id>(&looperPort);
msg->ReadString(&title);
msg->Read<port_id>(&replyport);
STRACE(("ServerApp %s: Got 'New Window' message, trying to do smething...\n",
_signature.String()));
// ServerWindow constructor will reply with port_id of a newly created port
ServerWindow *newwin = new ServerWindow( frame, title,
look, feel, flags, this, sendPort, looperPort, wkspaces, token);
_winlist->AddItem( newwin );
//AddWindowToDesktop( newwin, workspace, ActiveScreen() );
ServerWindow *newwin = new ServerWindow(frame, title,
look, feel, flags, this, sendPort, looperPort, replyport, wkspaces, token);
_winlist->AddItem(newwin);
STRACE(("ServerApp %s: New Window %s (%.1f,%.1f,%.1f,%.1f)\n",
_signature.String(),title,frame.left,frame.top,frame.right,frame.bottom));