From 58b78e471ee0fbd8b70e83de34de63e0992e4693 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 23 May 2005 17:40:42 +0000 Subject: [PATCH] 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 --- src/kits/interface/View.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index 0cf9299492..13252e4718 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -1216,6 +1216,9 @@ BView::GetMouse(BPoint *location, uint32 *buttons, bool checkMessageQueue) if (rCode == SERVER_TRUE) { owner->fLink->Read(location); owner->fLink->Read((int32 *)buttons, sizeof(int32)); + + // TODO: See above comment about coordinates + ConvertFromScreen(location); } }