little fix for the cursor to be displayed better

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7601 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca 2004-05-16 19:19:45 +00:00
parent 766a6dfd11
commit 37811ae65e

View File

@ -453,17 +453,18 @@ void Desktop::MouseEventHandler(PortMessage *msg)
BPoint pt(x, y);
if (fMouseTarget){
fActiveScreen->DDriver()->HideCursor();
fActiveScreen->DDriver()->MoveCursorTo(x,y);
fMouseTarget->MouseMoved(pt, buttons);
fActiveScreen->DDriver()->ShowCursor();
}
else{
WinBorder *target = ActiveRootLayer()->ActiveWorkspace()->SearchWinBorder(pt);
if(target)
target->MouseMoved(pt, buttons);
}
// We need this so that we can see the cursor on the screen
if(fActiveScreen)
fActiveScreen->DDriver()->MoveCursorTo(x,y);
}
break;
}