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
remotes/origin/Plasma/5.0
Luboš Luňák 19 years ago
parent 213833fc7f
commit 5bc01ac817
  1. 2
      group.cpp

@ -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…
Cancel
Save