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:
parent
a68747bd1d
commit
05a8c2c56c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user