parent
bc4d2d507a
commit
555b5c10b8
1 changed files with 8 additions and 2 deletions
10
client.cpp
10
client.cpp
|
@ -1641,8 +1641,14 @@ bool Client::isMaximizable() const
|
|||
*/
|
||||
bool Client::isMinimizable() const
|
||||
{
|
||||
return ( !isTransient() || !workspace()->findClient( transientFor() ) )
|
||||
&& wantsTabFocus() && may_minimize;
|
||||
if( isTransient())
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue