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:
Stefano Ceccherini
2005-05-23 17:40:42 +00:00
parent 89d4bfbf2a
commit 58b78e471e
+3
View File
@@ -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);
}
}