From 667fa89b02fdcf27ee738f9365d987fa6bb78773 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 31 Jan 2006 23:12:29 +0000 Subject: [PATCH] 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 --- src/servers/app/WindowLayer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/servers/app/WindowLayer.cpp b/src/servers/app/WindowLayer.cpp index f300ff05c7..fa94385697 100644 --- a/src/servers/app/WindowLayer.cpp +++ b/src/servers/app/WindowLayer.cpp @@ -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); }