Fix transiency loop with WM_TRANSIENT_FOR poiting to itself (e.g. with

ssh-askpass), and put the Only True assert() (TM) back.

svn path=/trunk/kdebase/kwin/; revision=253636
This commit is contained in:
Luboš Luňák 2003-09-24 16:56:49 +00:00
parent 3081abc4b8
commit 8a11c2ff74

View file

@ -534,7 +534,7 @@ Window Client::verifyTransientFor( Window new_transient_for, bool defined )
void Client::addTransient( Client* cl )
{
assert( !transients_list.contains( cl ));
Q_ASSERT( cl != this );
assert( cl != this );
transients_list.append( cl );
// kdDebug() << "ADDTRANS:" << this << ":" << cl << endl;
// kdDebug() << kdBacktrace() << endl;
@ -561,6 +561,7 @@ void Client::checkTransient( Window w )
{
if( original_transient_for_id != w )
return;
w = verifyTransientFor( w, true );
setTransient( w );
}