record our last screen/desktop setting even if we don't have a containment yet

svn path=/trunk/KDE/kdelibs/; revision=1042402
This commit is contained in:
Aaron J. Seigo 2009-10-29 18:50:18 +00:00
parent c71cd00557
commit b03243d7ae

View File

@ -180,12 +180,14 @@ void View::setScreen(int screen, int desktop)
} }
Containment *containment = corona->containmentForScreen(screen, desktop); Containment *containment = corona->containmentForScreen(screen, desktop);
if (containment) {
d->containment = 0; //so that we don't end up on the old containment's screen
d->lastScreen = screen; d->lastScreen = screen;
d->lastDesktop = desktop; d->lastDesktop = desktop;
if (containment) {
d->containment = 0; //so that we don't end up on the old containment's screen
setContainment(containment); setContainment(containment);
} }
} }
} }