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:
parent
766a6dfd11
commit
37811ae65e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user