The server now differentiates between hidden and minimized - that concept somehow
got lost, before. It might not work 100% correctly yet, but it works good enough to hide the Tracker status window from the Deskbar, and thus, fixing bug #133. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16314 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -463,21 +463,17 @@ BWindow::ChildAt(int32 index) const
|
||||
void
|
||||
BWindow::Minimize(bool minimize)
|
||||
{
|
||||
if (IsModal())
|
||||
if (IsModal() || IsFloating() || fMinimized == minimize)
|
||||
return;
|
||||
|
||||
if (IsFloating())
|
||||
return;
|
||||
|
||||
if (fMinimized == minimize)
|
||||
return;
|
||||
Lock();
|
||||
|
||||
fMinimized = minimize;
|
||||
|
||||
Lock();
|
||||
fLink->StartMessage(AS_WINDOW_MINIMIZE);
|
||||
fLink->StartMessage(AS_MINIMIZE_WINDOW);
|
||||
fLink->Attach<bool>(minimize);
|
||||
fLink->Flush();
|
||||
|
||||
Unlock();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user