use a rules file dependednt from the kwin name
kwinacriverulesrc vs kwinrulesrc
This commit is contained in:
parent
93e9854674
commit
36ed622a61
1 changed files with 2 additions and 2 deletions
|
@ -965,7 +965,7 @@ void Workspace::loadWindowRules()
|
||||||
delete rules.front();
|
delete rules.front();
|
||||||
rules.pop_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);
|
int count = cfg.group("General").readEntry("count", 0);
|
||||||
for (int i = 1;
|
for (int i = 1;
|
||||||
i <= count;
|
i <= count;
|
||||||
|
@ -979,7 +979,7 @@ void Workspace::loadWindowRules()
|
||||||
void Workspace::writeWindowRules()
|
void Workspace::writeWindowRules()
|
||||||
{
|
{
|
||||||
rulesUpdatedTimer.stop();
|
rulesUpdatedTimer.stop();
|
||||||
KConfig cfg("kwinrulesrc", KConfig::NoGlobals);
|
KConfig cfg(QLatin1String(KWIN_NAME) + "rulesrc", KConfig::NoGlobals);
|
||||||
QStringList groups = cfg.groupList();
|
QStringList groups = cfg.groupList();
|
||||||
for (QStringList::ConstIterator it = groups.constBegin();
|
for (QStringList::ConstIterator it = groups.constBegin();
|
||||||
it != groups.constEnd();
|
it != groups.constEnd();
|
||||||
|
|
Loading…
Reference in a new issue