Fixed the auto-raise "menus don't work anymore" bug.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21960 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-08-15 02:02:45 +00:00
parent b73648647d
commit f8ab4e92ed
+6
View File
@@ -137,6 +137,10 @@ TBarWindow::MenusBeginning()
sBeMenu->NeedsToRebuild();
sBeMenu->ResetTargets();
fBarView->SetEventMask(0);
// This works around a BeOS bug - the menu is quit with every
// B_MOUSE_DOWN the window receives...
BWindow::MenusBeginning();
}
@@ -151,6 +155,8 @@ TBarWindow::MenusEnded()
sBeMenu->RemoveItems(0, sBeMenu->CountItems(), true);
sBeMenu->UnlockLooper();
}
fBarView->UpdateAutoRaise();
}