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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user