sprinkle with some custom containment; this code hadn't been adapted since the addition of custom

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=782434
This commit is contained in:
Aaron J. Seigo 2008-03-05 05:56:43 +00:00
parent a68747bd1d
commit 05a8c2c56c

View File

@ -352,7 +352,8 @@ Containment* Corona::containmentForScreen(int screen) const
{
foreach (Containment* containment, d->containments) {
if (containment->screen() == screen &&
containment->containmentType() == Containment::DesktopContainment) {
containment->containmentType() == Containment::DesktopContainment ||
containment->containmentType() == Containment::CustomContainment) {
return containment;
}
}
@ -494,7 +495,9 @@ void Corona::screenResized(int screen)
if (c->screen() == screen) {
// trigger a relayout
c->setScreen(screen);
desktopFound = desktopFound || c->containmentType() == Containment::DesktopContainment;
desktopFound = desktopFound ||
c->containmentType() == Containment::DesktopContainment ||
c->containmentType() == Containment::CustomContainment;
}
}