Cleanp continues. Removed 2 methods from Workspace class because were related to rebuild/redraw stuff. Workspace should only care about corect window placement and order.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8366 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca
2004-07-10 10:54:20 +00:00
parent 0732418e3b
commit eac978a987
8 changed files with 145 additions and 108 deletions
+3 -3
View File
@@ -334,7 +334,7 @@ void Desktop::MouseEventHandler(PortMessage *msg)
Workspace *ws;
rl = ActiveRootLayer();
ws = rl->ActiveWorkspace();
target = ws->SearchWinBorder(pt);
target = rl->WinBorderAt(pt);
if (target)
{
fGeneralLock.Lock();
@@ -437,7 +437,7 @@ printf("2Focus: %s\n", ws->FocusLayer()->GetName());
// After we read the data, we need to reset it for MouseUp()
msg->Rewind();
WinBorder *target = ActiveRootLayer()->ActiveWorkspace()->SearchWinBorder(pt);
WinBorder *target = ActiveRootLayer()->WinBorderAt(pt);
if(target){
target->Window()->Lock();
target->MouseUp(msg);
@@ -481,7 +481,7 @@ printf("2Focus: %s\n", ws->FocusLayer()->GetName());
}
else
{
WinBorder *target = ActiveRootLayer()->ActiveWorkspace()->SearchWinBorder(BPoint(x,y));
WinBorder *target = ActiveRootLayer()->WinBorderAt(BPoint(x,y));
if(target){
target->Window()->Lock();
target->MouseMoved(msg);