From 6129966f96a9bcb9bfc6ae91e2f763632ff8986e Mon Sep 17 00:00:00 2001 From: Torben Weis Date: Mon, 25 Sep 2000 22:11:27 +0000 Subject: [PATCH] small patch from matthias, fixes Simon's konqueror fullscreen window svn path=/trunk/kdebase/kwin/; revision=65314 --- client.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client.cpp b/client.cpp index 9fee6edf2a..9658658915 100644 --- a/client.cpp +++ b/client.cpp @@ -1531,7 +1531,7 @@ void Client::iconify() { if ( !isMinimizable() ) return; - + if ( isShade() ) setShade( FALSE ); if ( workspace()->iconifyMeansWithdraw( this ) ) { @@ -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;