When building the update region on workspace switch, the mouse event window was

ignored even if it was not visible on the previous workspace (only normal windows
can be moved this way).
This fixes bug #765.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18585 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-08-23 12:20:28 +00:00
parent a8945c367b
commit 258d8a3380

View File

@ -836,7 +836,8 @@ Desktop::SetWorkspace(int32 index)
// send B_WORKSPACE_ACTIVATED message
window->WorkspaceActivated(index, true);
if (window->InWorkspace(previousIndex) || window == fMouseEventWindow) {
if (window->InWorkspace(previousIndex)
|| (window == fMouseEventWindow && fMouseEventWindow->IsNormal())) {
// this window was visible before, and is already handled in the above loop
continue;
}