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:
parent
6e95d0617e
commit
1e247fa749
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user