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