diff --git a/src/servers/app/server/ServerApp.cpp b/src/servers/app/server/ServerApp.cpp index e30e17008c..7c8f4c0e19 100644 --- a/src/servers/app/server/ServerApp.cpp +++ b/src/servers/app/server/ServerApp.cpp @@ -54,7 +54,7 @@ #include "LayerData.h" #include "Utils.h" -#define DEBUG_SERVERAPP +//#define DEBUG_SERVERAPP #ifdef DEBUG_SERVERAPP # include @@ -426,7 +426,7 @@ void ServerApp::_DispatchMessage(PortMessage *msg) msg->Read( &looperPort ); 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())); // ServerWindow constructor will reply with port_id of a newly created port @@ -701,9 +701,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg) cursormanager->AddCursor(_appcursor); // Synchronous message - BApplication is waiting on the cursor's ID - BSession s(0,replyport); - s.WriteInt32(_appcursor->ID()); - s.Sync(); + PortLink link(replyport); + link.Attach(_appcursor->ID()); + link.Flush(); break; } case AS_DELETE_BCURSOR: @@ -728,9 +728,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg) port_id replyport; msg->Read(&replyport); - BSession replysession(0,replyport); - replysession.WriteData(&sbi,sizeof(scroll_bar_info)); - replysession.Sync(); + PortLink link(replyport); + link.Attach(sbi); + link.Flush(); break; } case AS_SET_SCROLLBAR_INFO: @@ -750,9 +750,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg) port_id replyport; msg->Read(&replyport); - BSession replysession(0,replyport); - replysession.WriteBool(GetFFMouse()); - replysession.Sync(); + PortLink link(replyport); + link.Attach(GetFFMouse()); + link.Flush(); break; } case AS_SET_FOCUS_FOLLOWS_MOUSE: @@ -782,9 +782,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg) port_id replyport; msg->Read(&replyport); - BSession replysession(0,replyport); - replysession.WriteData(&mmode,sizeof(mode_mouse)); - replysession.Sync(); + PortLink link(replyport); + link.Attach(mmode); + link.Flush(); break; } case AS_GET_UI_COLOR: