From 7acb68edf9be9a35a8203bb9a0b5a643d7ccad5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 25 Sep 2007 13:38:10 +0000 Subject: [PATCH] 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 --- src/kits/interface/Window.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index 1386f2ebe2..701ef04127 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -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: {