mirror of
https://review.haiku-os.org/haiku
synced 2025-01-20 05:21:28 +01:00
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:
parent
ed49f4afcd
commit
6aa12747cd
@ -1881,8 +1881,7 @@ BMenu::OkToProceed(BMenuItem* item)
|
||||
GetMouse(&where, &buttons, false);
|
||||
// Quit if user releases the mouse button or moves
|
||||
// the pointer over another item
|
||||
// TODO: Something's wrong: I should use ConvertToScreen() here
|
||||
if (buttons == 0 || HitTestItems(/*ConvertToScreen(*/where/*)*/) != item)
|
||||
if (buttons == 0 || HitTestItems(where) != item)
|
||||
proceed = false;
|
||||
|
||||
return proceed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user