Converted all BSessions used for replies to PortLinks
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5359 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2a006628cc
commit
98a70bba4b
@ -54,7 +54,7 @@
|
|||||||
#include "LayerData.h"
|
#include "LayerData.h"
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
|
|
||||||
#define DEBUG_SERVERAPP
|
//#define DEBUG_SERVERAPP
|
||||||
|
|
||||||
#ifdef DEBUG_SERVERAPP
|
#ifdef DEBUG_SERVERAPP
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
@ -426,7 +426,7 @@ void ServerApp::_DispatchMessage(PortMessage *msg)
|
|||||||
msg->Read<port_id>( &looperPort );
|
msg->Read<port_id>( &looperPort );
|
||||||
msg->ReadString( &title );
|
msg->ReadString( &title );
|
||||||
|
|
||||||
STRACE(("ServerApp %s: Got 'New Window' message, trying to do something...\n",
|
STRACE(("ServerApp %s: Got 'New Window' message, trying to do smething...\n",
|
||||||
_signature.String()));
|
_signature.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
|
||||||
@ -701,9 +701,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg)
|
|||||||
cursormanager->AddCursor(_appcursor);
|
cursormanager->AddCursor(_appcursor);
|
||||||
|
|
||||||
// Synchronous message - BApplication is waiting on the cursor's ID
|
// Synchronous message - BApplication is waiting on the cursor's ID
|
||||||
BSession s(0,replyport);
|
PortLink link(replyport);
|
||||||
s.WriteInt32(_appcursor->ID());
|
link.Attach<int32>(_appcursor->ID());
|
||||||
s.Sync();
|
link.Flush();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AS_DELETE_BCURSOR:
|
case AS_DELETE_BCURSOR:
|
||||||
@ -728,9 +728,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg)
|
|||||||
port_id replyport;
|
port_id replyport;
|
||||||
msg->Read<int32>(&replyport);
|
msg->Read<int32>(&replyport);
|
||||||
|
|
||||||
BSession replysession(0,replyport);
|
PortLink link(replyport);
|
||||||
replysession.WriteData(&sbi,sizeof(scroll_bar_info));
|
link.Attach<scroll_bar_info>(sbi);
|
||||||
replysession.Sync();
|
link.Flush();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AS_SET_SCROLLBAR_INFO:
|
case AS_SET_SCROLLBAR_INFO:
|
||||||
@ -750,9 +750,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg)
|
|||||||
port_id replyport;
|
port_id replyport;
|
||||||
msg->Read<int32>(&replyport);
|
msg->Read<int32>(&replyport);
|
||||||
|
|
||||||
BSession replysession(0,replyport);
|
PortLink link(replyport);
|
||||||
replysession.WriteBool(GetFFMouse());
|
link.Attach<bool>(GetFFMouse());
|
||||||
replysession.Sync();
|
link.Flush();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AS_SET_FOCUS_FOLLOWS_MOUSE:
|
case AS_SET_FOCUS_FOLLOWS_MOUSE:
|
||||||
@ -782,9 +782,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg)
|
|||||||
port_id replyport;
|
port_id replyport;
|
||||||
msg->Read<int32>(&replyport);
|
msg->Read<int32>(&replyport);
|
||||||
|
|
||||||
BSession replysession(0,replyport);
|
PortLink link(replyport);
|
||||||
replysession.WriteData(&mmode,sizeof(mode_mouse));
|
link.Attach<mode_mouse>(mmode);
|
||||||
replysession.Sync();
|
link.Flush();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AS_GET_UI_COLOR:
|
case AS_GET_UI_COLOR:
|
||||||
|
Loading…
Reference in New Issue
Block a user