Stupid me. ConvertToScreen() isn't needed, and I should read more carefully my own code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16901 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1881,8 +1881,7 @@ BMenu::OkToProceed(BMenuItem* item)
|
|||||||
GetMouse(&where, &buttons, false);
|
GetMouse(&where, &buttons, false);
|
||||||
// Quit if user releases the mouse button or moves
|
// Quit if user releases the mouse button or moves
|
||||||
// the pointer over another item
|
// the pointer over another item
|
||||||
// TODO: Something's wrong: I should use ConvertToScreen() here
|
if (buttons == 0 || HitTestItems(where) != item)
|
||||||
if (buttons == 0 || HitTestItems(/*ConvertToScreen(*/where/*)*/) != item)
|
|
||||||
proceed = false;
|
proceed = false;
|
||||||
|
|
||||||
return proceed;
|
return proceed;
|
||||||
|
|||||||
Reference in New Issue
Block a user