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:
parent
f1d806fe5d
commit
667fa89b02
@ -987,12 +987,18 @@ WindowLayer::MouseMoved(BMessage *msg, BPoint where, int32* _viewToken,
|
|||||||
void
|
void
|
||||||
WindowLayer::WorkspaceActivated(int32 index, bool active)
|
WindowLayer::WorkspaceActivated(int32 index, bool active)
|
||||||
{
|
{
|
||||||
|
if (!active)
|
||||||
|
fWindow->HandleDirectConnection(B_DIRECT_STOP);
|
||||||
|
|
||||||
BMessage activatedMsg(B_WORKSPACE_ACTIVATED);
|
BMessage activatedMsg(B_WORKSPACE_ACTIVATED);
|
||||||
activatedMsg.AddInt64("when", system_time());
|
activatedMsg.AddInt64("when", system_time());
|
||||||
activatedMsg.AddInt32("workspace", index);
|
activatedMsg.AddInt32("workspace", index);
|
||||||
activatedMsg.AddBool("active", active);
|
activatedMsg.AddBool("active", active);
|
||||||
|
|
||||||
ServerWindow()->SendMessageToClient(&activatedMsg);
|
ServerWindow()->SendMessageToClient(&activatedMsg);
|
||||||
|
|
||||||
|
if (active)
|
||||||
|
fWindow->HandleDirectConnection(B_DIRECT_START | B_BUFFER_RESET);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user