No need to lock anymore when calling ServerWindow::SendMessageToClient()

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10937 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca 2005-01-21 21:16:15 +00:00
parent 6a257c30a9
commit f6e53a25ec
3 changed files with 0 additions and 10 deletions

View File

@ -400,10 +400,8 @@ void ServerApp::DispatchMessage(int32 code, LinkMsgReader &msg)
for(int32 i=0; i<fSWindowList->CountItems(); i++)
{
win=(ServerWindow*)fSWindowList->ItemAt(i);
win->Lock();
win->fWinBorder->UpdateColors();
win->SendMessageToClient(AS_UPDATE_COLORS, msg);
win->Unlock();
}
*/ break;
}
@ -419,10 +417,8 @@ void ServerApp::DispatchMessage(int32 code, LinkMsgReader &msg)
for(int32 i=0; i<fSWindowList->CountItems(); i++)
{
win=(ServerWindow*)fSWindowList->ItemAt(i);
win->Lock();
win->fWinBorder->UpdateFont();
win->SendMessageToClient(AS_UPDATE_FONTS, msg);
win->Unlock();
}
*/ break;
}

View File

@ -380,9 +380,7 @@ void WinBorder::MouseWheel(PointerEvent& evt, BPoint& ptWhere)
wheelmsg.AddFloat("be:wheel_delta_x",evt.wheel_delta_x);
wheelmsg.AddFloat("be:wheel_delta_y",evt.wheel_delta_y);
Window()->Lock();
Window()->SendMessageToClient(&wheelmsg);
Window()->Unlock();
}
}

View File

@ -1166,9 +1166,7 @@ void Workspace::SearchAndSetNewFocus(WinBorder *preferred)
BMessage inactive(B_WINDOW_ACTIVATED);
inactive.AddInt64("when",system_time());
inactive.AddBool("active",false);
oldItem->layerPtr->Window()->Lock();
oldItem->layerPtr->Window()->SendMessageToClient(&inactive);
oldItem->layerPtr->Window()->Unlock();
}
fFocusItem=item;
@ -1181,9 +1179,7 @@ void Workspace::SearchAndSetNewFocus(WinBorder *preferred)
active.AddInt64("when",system_time());
active.AddBool("active",true);
fFocusItem->layerPtr->Window()->Lock();
fFocusItem->layerPtr->Window()->SendMessageToClient(&active);
fFocusItem->layerPtr->Window()->Unlock();
}
}
}