containmentType() .. NOT type()!
and now we know the source of the "panel covers the entire screen" bug BUG:259704
This commit is contained in:
parent
f0498a9973
commit
c3cb35739c
4
view.cpp
4
view.cpp
@ -186,8 +186,8 @@ void View::setScreen(int screen, int desktop)
|
|||||||
|
|
||||||
// handle views that are working with panel containment types
|
// handle views that are working with panel containment types
|
||||||
if (d->containment &&
|
if (d->containment &&
|
||||||
(d->containment->type() == Containment::PanelContainment ||
|
(d->containment->containmentType() == Containment::PanelContainment ||
|
||||||
d->containment->type() == Containment::CustomPanelContainment)) {
|
d->containment->containmentType() == Containment::CustomPanelContainment)) {
|
||||||
d->containment->setScreen(screen, desktop);
|
d->containment->setScreen(screen, desktop);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user