set the geometry and then add the offscreen containment to corona->no

more colliding calendars

svn path=/trunk/KDE/kdelibs/; revision=970798
This commit is contained in:
Marco Martin 2009-05-20 20:27:01 +00:00
parent 91e70eb15e
commit 87d8831b2e

View File

@ -286,11 +286,12 @@ void Containment::restore(KConfigGroup &group)
setMinimumSize(minimumSize().boundedTo(geo.size()));
}
setGeometry(geo);
//are we an offscreen containment?
if (containmentType() != PanelContainment && containmentType() != CustomPanelContainment && geo.right() < 0) {
corona()->addOffscreenWidget(this);
}
setGeometry(geo);
setLocation((Plasma::Location)group.readEntry("location", (int)d->location));
setFormFactor((Plasma::FormFactor)group.readEntry("formfactor", (int)d->formFactor));