Fixed focusing problem

some optimizations to "drawing code"(not the real one) because of more efficient locking.
... other improvements.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6074 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca
2004-01-14 15:55:10 +00:00
parent 7bd3c77058
commit fa554b7dd8
7 changed files with 73 additions and 33 deletions
+3 -4
View File
@@ -231,7 +231,8 @@ void Desktop::SetFrontWinBorder(WinBorder* winBorder){
// TODO: implement
}
//---------------------------------------------------------------------------
void Desktop::SetFoocusWinBorder(WinBorder* winBorder){
// TODO: remove shortly?
void Desktop::SetFoooocusWinBorder(WinBorder* winBorder){
if (FocusWinBorder() == winBorder && (winBorder && !winBorder->IsHidden()))
return;
@@ -312,9 +313,7 @@ void Desktop::MouseEventHandler(PortMessage *msg){
rl->fMainLock.Lock();
ws->SearchAndSetNewFront(target);
// NOTE: !!! Be VERY careful about this method !!!!
SetFoocusWinBorder(target);
//ws->SetFocusLayer(target);
ws->SetFocusLayer(target);
rl->fMainLock.Unlock();
fGeneralLock.Unlock();