More bugfixes for BWindow construction

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2906 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2003-03-12 19:34:47 +00:00
parent 2d51f602e9
commit f098890e88
2 changed files with 3 additions and 0 deletions

View File

@ -325,6 +325,7 @@ void ServerApp::_DispatchMessage(int32 code, int8 *buffer)
PortLink *replylink=new PortLink(reply_port);
replylink->SetOpCode(AS_SET_SERVER_PORT);
replylink->Attach((int32)newwin->_receiver);
replylink->Attach((int32)newwin->_token);
replylink->Flush();
delete replylink;

View File

@ -81,6 +81,8 @@ ServerWindow::ServerWindow(BRect rect, const char *string, uint32 wlook,
_workspace_index=index;
_workspace=NULL;
_token=win_token_handler.GetToken();
AddWindowToDesktop(this,index);
}