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:
@@ -850,8 +850,21 @@ BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case B_HIDE_APPLICATION:
|
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;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case B_WINDOW_RESIZED:
|
case B_WINDOW_RESIZED:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user