BDirectwindow is notified when workspace changes. Fixes bug #99

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16174 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-01-31 23:12:29 +00:00
parent f1d806fe5d
commit 667fa89b02
1 changed files with 6 additions and 0 deletions

View File

@ -987,12 +987,18 @@ WindowLayer::MouseMoved(BMessage *msg, BPoint where, int32* _viewToken,
void
WindowLayer::WorkspaceActivated(int32 index, bool active)
{
if (!active)
fWindow->HandleDirectConnection(B_DIRECT_STOP);
BMessage activatedMsg(B_WORKSPACE_ACTIVATED);
activatedMsg.AddInt64("when", system_time());
activatedMsg.AddInt32("workspace", index);
activatedMsg.AddBool("active", active);
ServerWindow()->SendMessageToClient(&activatedMsg);
if (active)
fWindow->HandleDirectConnection(B_DIRECT_START | B_BUFFER_RESET);
}