Modified a few constrctors so this is the actualized version

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6723 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca 2004-02-24 11:58:25 +00:00
parent e0947c82c8
commit 91cf2bda4a
2 changed files with 5 additions and 3 deletions

View File

@ -274,7 +274,8 @@ void ServerApp::WindowBroadcast(int32 code)
for(int32 i=0; i<count; i++) for(int32 i=0; i<count; i++)
{ {
ServerWindow *sw = ((WinBorder*)desktop->fWinBorderList.ItemAt(i))->Window(); ServerWindow *sw = ((WinBorder*)desktop->fWinBorderList.ItemAt(i))->Window();
sw->PostMessage(code); BMessage msg(B_QUIT_REQUESTED);
sw->SendMessageToClient(&msg);
} }
desktop->fLayerLock.Unlock(); desktop->fLayerLock.Unlock();
} }
@ -517,7 +518,7 @@ void ServerApp::_DispatchMessage(PortMessage *msg)
msg->Read<port_id>(&looperPort); msg->Read<port_id>(&looperPort);
msg->ReadString(&title); msg->ReadString(&title);
msg->Read<port_id>(&replyport); msg->Read<port_id>(&replyport);
STRACE(("ServerApp %s: Got 'New Window' message, trying to do smething...\n",fSignature.String())); STRACE(("ServerApp %s: Got 'New Window' message, trying to do smething...\n",fSignature.String()));
// ServerWindow constructor will reply with port_id of a newly created port // ServerWindow constructor will reply with port_id of a newly created port

View File

@ -39,6 +39,7 @@ class PortMessage;
class BList; class BList;
class DisplayDriver; class DisplayDriver;
class ServerCursor; class ServerCursor;
class ServerBitmap;
/*! /*!
\class ServerApp ServerApp.h \class ServerApp ServerApp.h
@ -81,7 +82,7 @@ protected:
friend class ServerWindow; friend class ServerWindow;
void _DispatchMessage(PortMessage *msg); void _DispatchMessage(PortMessage *msg);
ServerBitmap *_FindBitmap(int32 token); ServerBitmap* _FindBitmap(int32 token);
port_id fClientAppPort, port_id fClientAppPort,
fMessagePort, fMessagePort,