diff --git a/src/servers/app/ServerApp.cpp b/src/servers/app/ServerApp.cpp index b4c923cb44..c98a18043f 100644 --- a/src/servers/app/ServerApp.cpp +++ b/src/servers/app/ServerApp.cpp @@ -191,9 +191,7 @@ ServerApp::Run(void) if (fMonitorThreadID < B_OK) return false; - resume_thread(fMonitorThreadID); - - return true; + return resume_thread(fMonitorThreadID) == B_OK; } /*! @@ -266,7 +264,8 @@ ServerApp::Activate(bool value) fIsActive = value; SetAppCursor(); } - + + //! Sets the cursor to the application cursor, if any. void ServerApp::SetAppCursor(void) @@ -278,6 +277,7 @@ ServerApp::SetAppCursor(void) gDesktop->ActiveRootLayer()->GetDisplayDriver()->SetCursor(fAppCursor); } + /*! \brief The thread function ServerApps use to monitor messages \param data Pointer to the thread's ServerApp object @@ -400,6 +400,7 @@ ServerApp::MonitorApp(void *data) return 0; } + /*! \brief Handler function for BApplication API messages \param code Identifier code for the message. Equivalent to BMessage::what