Made the private B_HIDE_APPLICATION message (now a misnomer) hide all applications

that share the same signature - so that this feature is now consistent to what the
Deskbar does.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22304 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-09-25 13:38:10 +00:00
parent 04d7b50bde
commit 7acb68edf9
+14 -1
View File
@@ -850,8 +850,21 @@ BWindow::DispatchMessage(BMessage *msg, BHandler *target)
}
case B_HIDE_APPLICATION:
do_minimize_team(BRect(), be_app->Team(), false);
{
// Hide all applications with the same signature
// (ie. those that are part of the same group to be consistent
// to what the Deskbar shows you).
app_info info;
be_app->GetAppInfo(&info);
BList list;
be_roster->GetAppList(info.signature, &list);
for (int32 i = 0; i < list.CountItems(); i++) {
do_minimize_team(BRect(), (team_id)list.ItemAt(i), false);
}
break;
}
case B_WINDOW_RESIZED:
{