use a rules file dependednt from the kwin name

kwinacriverulesrc vs kwinrulesrc
This commit is contained in:
Marco Martin 2012-11-03 22:07:13 +01:00
parent 93e9854674
commit 36ed622a61

View file

@ -965,7 +965,7 @@ void Workspace::loadWindowRules()
delete rules.front();
rules.pop_front();
}
KConfig cfg("kwinrulesrc", KConfig::NoGlobals);
KConfig cfg(QLatin1String(KWIN_NAME) + "rulesrc", KConfig::NoGlobals);
int count = cfg.group("General").readEntry("count", 0);
for (int i = 1;
i <= count;
@ -979,7 +979,7 @@ void Workspace::loadWindowRules()
void Workspace::writeWindowRules()
{
rulesUpdatedTimer.stop();
KConfig cfg("kwinrulesrc", KConfig::NoGlobals);
KConfig cfg(QLatin1String(KWIN_NAME) + "rulesrc", KConfig::NoGlobals);
QStringList groups = cfg.groupList();
for (QStringList::ConstIterator it = groups.constBegin();
it != groups.constEnd();