set the last screen/desktop even in the panel case
svn path=/trunk/KDE/kdelibs/; revision=1136743
This commit is contained in:
parent
f7c28b7ebb
commit
c0c3ccabe3
16
view.cpp
16
view.cpp
@ -175,14 +175,6 @@ void View::setScreen(int screen, int desktop)
|
||||
return;
|
||||
}
|
||||
|
||||
// handle views that are working with panel containment types
|
||||
if (d->containment &&
|
||||
(d->containment->type() == Containment::PanelContainment ||
|
||||
d->containment->type() == Containment::CustomPanelContainment)) {
|
||||
d->containment->setScreen(screen, desktop);
|
||||
return;
|
||||
}
|
||||
|
||||
// handle desktop views
|
||||
// -1 == All desktops
|
||||
if (desktop < -1 || desktop > KWindowSystem::numberOfDesktops() - 1) {
|
||||
@ -192,6 +184,14 @@ void View::setScreen(int screen, int desktop)
|
||||
d->lastScreen = screen;
|
||||
d->lastDesktop = 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->setScreen(screen, desktop);
|
||||
return;
|
||||
}
|
||||
|
||||
Plasma::Corona *corona = qobject_cast<Plasma::Corona*>(scene());
|
||||
if (corona) {
|
||||
Containment *containment = corona->containmentForScreen(screen, desktop);
|
||||
|
Loading…
Reference in New Issue
Block a user