Prevent transient loops also when caused by 'this' (which doesn't have

the new value set yet).
BUG: 153360


svn path=/trunk/KDE/kdebase/workspace/; revision=748511
This commit is contained in:
Luboš Luňák 2007-12-14 17:29:19 +00:00
parent 213833fc7f
commit 5bc01ac817

View file

@ -834,7 +834,7 @@ Window Client::verifyTransientFor( Window new_transient_for, bool defined )
if( pos == NULL )
break;
loop_pos = pos->transient_for_id;
if( --count == 0 )
if( --count == 0 || pos == this )
{
kWarning( 1216 ) << "Client " << this << " caused WM_TRANSIENT_FOR loop." ;
new_transient_for = rootWindow();