Fix finding of mainwindows.
svn path=/trunk/kdebase/kwin/; revision=272430
This commit is contained in:
parent
55f1a65613
commit
bcd0bb4113
2 changed files with 3 additions and 3 deletions
4
client.h
4
client.h
|
@ -55,9 +55,9 @@ class Client : public QObject, public KDecorationDefines
|
|||
Client* transientFor();
|
||||
bool isTransient() const;
|
||||
bool groupTransient() const;
|
||||
ClientList mainClients() const; // call once before loop
|
||||
ClientList mainClients() const; // call once before loop , is not indirect
|
||||
bool hasTransient( const Client* c, bool indirect ) const;
|
||||
const ClientList& transients() const;
|
||||
const ClientList& transients() const; // is not indirect
|
||||
void checkTransient( Window w );
|
||||
Client* findModal();
|
||||
const Group* group() const;
|
||||
|
|
|
@ -656,7 +656,7 @@ ClientList Client::mainClients() const
|
|||
for( ClientList::ConstIterator it = group()->members().begin();
|
||||
it != group()->members().end();
|
||||
++it )
|
||||
if( !(*it)->groupTransient() && (*it)->hasTransient( this, false ))
|
||||
if((*it)->hasTransient( this, false ))
|
||||
result.append( *it );
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue