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:
parent
213833fc7f
commit
5bc01ac817
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue