Convert mouse coordinates from screen to view, thus fixing GetMouse(). Menus at least open now, and textview works in synchronous mode
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12790 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1216,6 +1216,9 @@ BView::GetMouse(BPoint *location, uint32 *buttons, bool checkMessageQueue)
|
||||
if (rCode == SERVER_TRUE) {
|
||||
owner->fLink->Read<BPoint>(location);
|
||||
owner->fLink->Read((int32 *)buttons, sizeof(int32));
|
||||
|
||||
// TODO: See above comment about coordinates
|
||||
ConvertFromScreen(location);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user