* Moved the B_NOT_MINIMIZABLE flag check into ServerWindow::NotifyMinimize()

as this fixes some more incorrect minimizations on the app_server side.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34361 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-11-30 08:06:50 +00:00
parent f6379d4127
commit ac628ead05
2 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -1859,8 +1859,7 @@ Desktop::MinimizeApplication(team_id team)
if (window->ServerWindow()->ClientTeam() != team)
continue;
if ((window->Flags() & B_NOT_MINIMIZABLE) == 0)
window->ServerWindow()->NotifyMinimize(true);
window->ServerWindow()->NotifyMinimize(true);
}
}
+2 -1
View File
@@ -425,7 +425,8 @@ ServerWindow::NotifyQuitRequested()
void
ServerWindow::NotifyMinimize(bool minimize)
{
if (fWindow->Feel() != B_NORMAL_WINDOW_FEEL)
if (fWindow->Feel() != B_NORMAL_WINDOW_FEEL
|| ((fWindow->Flags() & B_NOT_MINIMIZABLE) == 0 && minimize))
return;
// The client is responsible for the actual minimization