Oops, mainClients() returns a temporary (just like if its comment didn't

say so ...). Fixes #65297.

svn path=/trunk/kdebase/kwin/; revision=255416
This commit is contained in:
Luboš Luňák 2003-10-01 15:46:23 +00:00
parent 017a08e98b
commit 74536fc72c

View file

@ -318,8 +318,9 @@ bool Client::manage( Window w, bool isMapped )
// window that is not Iconic, set init_state to Normal
if( init_minimize && isTransient())
{
for( ClientList::ConstIterator it = mainClients().begin();
it != mainClients().end();
ClientList mainclients = mainClients();
for( ClientList::ConstIterator it = mainclients.begin();
it != mainclients.end();
++it )
if( (*it)->isShown())
init_minimize = false; // SELI even e.g. for NET::Utility?