As per Ingo's request, I moved calling BRoster::Private::UpdateActiveApp() into
the app_server (and updated all comments that said otherwise). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19865 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1736,7 +1736,8 @@ BRoster::_ApplicationCrashed(team_id team)
|
||||
|
||||
/*!
|
||||
Tells the registrar which application is currently active.
|
||||
It's called from within BWindow on B_WINDOW_ACTIVATED messages.
|
||||
It's called from within the app_server when the active application is
|
||||
changed.
|
||||
*/
|
||||
status_t
|
||||
BRoster::_UpdateActiveApp(team_id team) const
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include <MenuPrivate.h>
|
||||
#include <MessagePrivate.h>
|
||||
#include <PortLink.h>
|
||||
#include <RosterPrivate.h>
|
||||
#include <ServerProtocol.h>
|
||||
#include <TokenSpace.h>
|
||||
#include <tracker_private.h>
|
||||
@@ -906,11 +905,6 @@ FrameMoved(origin);
|
||||
if (msg->FindBool("active", &active) == B_OK
|
||||
&& active != fActive) {
|
||||
fActive = active;
|
||||
if (active) {
|
||||
// notify registrar about the active app
|
||||
BRoster::Private roster;
|
||||
roster.UpdateActiveApp(be_app->Team());
|
||||
}
|
||||
|
||||
WindowActivated(active);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user