small patch from matthias, fixes Simon's konqueror fullscreen window

svn path=/trunk/kdebase/kwin/; revision=65314
This commit is contained in:
Torben Weis 2000-09-25 22:11:27 +00:00
parent 6dacbd0112
commit 6129966f96

View file

@ -2076,10 +2076,13 @@ Client* Client::mainClient()
if ( !isTransient() && transientFor() != 0 )
return this;
ClientList saveset;
Client* c = this;
Client *n, *c = this;
do {
saveset.append( c );
c = workspace()->findClient( c->transientFor() );
n = workspace()->findClient( c->transientFor() );
if ( !n )
break;
c = n;
} while ( c && c->isTransient() && !saveset.contains( c ) );
return c?c:this;