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
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue