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:
parent
3081abc4b8
commit
8a11c2ff74
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue