svn path=/trunk/kdebase/kwin/; revision=213364
This commit is contained in:
Luboš Luňák 2003-03-12 14:43:06 +00:00
parent bc4d2d507a
commit 555b5c10b8

View file

@ -1641,8 +1641,14 @@ bool Client::isMaximizable() const
*/ */
bool Client::isMinimizable() const bool Client::isMinimizable() const
{ {
return ( !isTransient() || !workspace()->findClient( transientFor() ) ) if( isTransient())
&& wantsTabFocus() && may_minimize; {
Client* trans = workspace()->findClient( transientFor());
// TODO should it be allowed to have WM_TRANSIENT_FOR pointing to itself?
if( trans != NULL && trans != this )
return false;
}
return wantsTabFocus() && may_minimize;
} }
/* /*