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
1b9bf08082
commit
feb6a53659
4
view.cpp
4
view.cpp
@ -188,8 +188,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user