From bcd0bb4113f084ca7dcaa83aec3c16917d879568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 11 Dec 2003 09:09:38 +0000 Subject: [PATCH] Fix finding of mainwindows. svn path=/trunk/kdebase/kwin/; revision=272430 --- client.h | 4 ++-- group.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client.h b/client.h index 3b3615de9c..147bbb3c15 100644 --- a/client.h +++ b/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; diff --git a/group.cpp b/group.cpp index 8b01e553a1..087d0cfb72 100644 --- a/group.cpp +++ b/group.cpp @@ -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; }