pass -1 as first parameter of StartMenuBar(), otherwise it will hide the

cursor (used for keyboard navigation). Fixes bug #1807


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24003 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-02-18 13:04:52 +00:00
parent 4db9f96954
commit 44cd9847e9

View File

@ -301,9 +301,10 @@ BMenuField::MouseDown(BPoint where)
BRect bounds = fMenuBar->ConvertFromParent(Bounds()); BRect bounds = fMenuBar->ConvertFromParent(Bounds());
fMenuBar->StartMenuBar(0, false, true, &bounds); fMenuBar->StartMenuBar(-1, false, true, &bounds);
fMenuTaskID = spawn_thread((thread_func)_thread_entry, "_m_task_", B_NORMAL_PRIORITY, this); fMenuTaskID = spawn_thread((thread_func)_thread_entry,
"_m_task_", B_NORMAL_PRIORITY, this);
if (fMenuTaskID >= 0) if (fMenuTaskID >= 0)
resume_thread(fMenuTaskID); resume_thread(fMenuTaskID);
} }