Avoid unnecessary and excessive kconfig syncs.
svn path=/trunk/KDE/kdebase/workspace/; revision=476560
This commit is contained in:
parent
00ba722f60
commit
67ba695f34
1 changed files with 4 additions and 1 deletions
|
@ -1026,12 +1026,14 @@ void Workspace::cleanupTemporaryRules()
|
|||
|
||||
void Workspace::discardUsedWindowRules( Client* c, bool withdrawn )
|
||||
{
|
||||
bool updated = false;
|
||||
for( QList< Rules* >::Iterator it = rules.begin();
|
||||
it != rules.end();
|
||||
)
|
||||
{
|
||||
if( c->rules()->contains( *it ))
|
||||
{
|
||||
updated = true;
|
||||
(*it)->discardUsed( withdrawn );
|
||||
if( (*it)->isEmpty())
|
||||
{
|
||||
|
@ -1044,6 +1046,7 @@ void Workspace::discardUsedWindowRules( Client* c, bool withdrawn )
|
|||
}
|
||||
++it;
|
||||
}
|
||||
if( updated )
|
||||
rulesUpdated();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue