From b03243d7aee9b18126d08111d0dc2bcabc873e0b Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 29 Oct 2009 18:50:18 +0000 Subject: [PATCH] record our last screen/desktop setting even if we don't have a containment yet svn path=/trunk/KDE/kdelibs/; revision=1042402 --- view.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/view.cpp b/view.cpp index fbff2d8a3..d23dce1b6 100644 --- a/view.cpp +++ b/view.cpp @@ -180,12 +180,14 @@ void View::setScreen(int screen, int desktop) } Containment *containment = corona->containmentForScreen(screen, desktop); + d->lastScreen = screen; + d->lastDesktop = desktop; + if (containment) { d->containment = 0; //so that we don't end up on the old containment's screen - d->lastScreen = screen; - d->lastDesktop = desktop; setContainment(containment); } + } }