containmentType() .. NOT type()!

and now we know the source of the "panel covers the entire screen" bug

BUG:259704
This commit is contained in:
Aaron Seigo 2011-12-02 17:00:29 +01:00
parent f0498a9973
commit c3cb35739c

View File

@ -186,8 +186,8 @@ void View::setScreen(int screen, int desktop)
// handle views that are working with panel containment types
if (d->containment &&
(d->containment->type() == Containment::PanelContainment ||
d->containment->type() == Containment::CustomPanelContainment)) {
(d->containment->containmentType() == Containment::PanelContainment ||
d->containment->containmentType() == Containment::CustomPanelContainment)) {
d->containment->setScreen(screen, desktop);
return;
}