small patch from matthias, fixes Simon's konqueror fullscreen window
svn path=/trunk/kdebase/kwin/; revision=65314
This commit is contained in:
parent
6dacbd0112
commit
6129966f96
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue