Flush containment constraints as soon as they are loaded so that they can be

acted upon without having to wait for the event loop. This is needed so that
the desktop doesn't temporarily appear white when a wallpaper hasn't been
set.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757548
This commit is contained in:
Jason Stubbs 2008-01-05 10:35:32 +00:00
parent 6e95d0617e
commit 1e247fa749
2 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,7 @@ void Containment::loadConstraints(KConfigGroup* group)
setLocation((Plasma::Location)group->readEntry("location", (int)d->location));
setFormFactor((Plasma::FormFactor)group->readEntry("formfactor", (int)d->formFactor));
setScreen(group->readEntry("screen", d->screen));
flushUpdatedConstraints();
}
void Containment::saveConstraints(KConfigGroup* group) const

View File

@ -267,6 +267,7 @@ void Corona::loadApplets(const QString& configName)
Containment* c = addContainment("desktop");
c->setScreen(i);
c->setFormFactor(Plasma::Planar);
c->flushUpdatedConstraints();
}
}
}
@ -297,6 +298,7 @@ void Corona::loadDefaultSetup()
Containment* c = addContainment("desktop");
c->setScreen(i);
c->setFormFactor(Plasma::Planar);
c->flushUpdatedConstraints();
if (g.x() <= topLeftCorner.x() && g.y() >= topLeftCorner.y()) {
topLeftCorner = g.topLeft();