* Only activate the app on double click; don't bring all windows to front.

* This closes ticket #4969.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34117 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-11-18 17:14:58 +00:00
parent a76b231c98
commit 143e4fbc3e

View File

@ -331,10 +331,8 @@ TExpandoMenuBar::MouseDown(BPoint where)
if (message != NULL && message->FindInt32("clicks", &clicks) == B_OK
&& clicks > 1) {
if (item == menuItem && item == fLastClickItem) {
// bring this team's window to the front
BMessage showMessage(kBringTeamToFront);
showMessage.AddInt32("itemIndex", IndexOf(item));
Window()->PostMessage(&showMessage, this);
// activate this team
be_roster->ActivateApp((team_id)item->Teams()->ItemAt(0));
return;
}
} else