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

@ -1531,7 +1531,7 @@ void Client::iconify()
{ {
if ( !isMinimizable() ) if ( !isMinimizable() )
return; return;
if ( isShade() ) if ( isShade() )
setShade( FALSE ); setShade( FALSE );
if ( workspace()->iconifyMeansWithdraw( this ) ) { if ( workspace()->iconifyMeansWithdraw( this ) ) {
@ -2076,10 +2076,13 @@ Client* Client::mainClient()
if ( !isTransient() && transientFor() != 0 ) if ( !isTransient() && transientFor() != 0 )
return this; return this;
ClientList saveset; ClientList saveset;
Client* c = this; Client *n, *c = this;
do { do {
saveset.append( c ); 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 ) ); } while ( c && c->isTransient() && !saveset.contains( c ) );
return c?c:this; return c?c:this;