improve mointor hot[un]plug support, patch by Aike J Sommer. thanks, Aike!

CCMAIL:dev@aikesommer.name

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792179
This commit is contained in:
Aaron J. Seigo 2008-03-31 14:56:55 +00:00
parent a9b7d3361d
commit 771fd1804b

View File

@ -124,7 +124,7 @@ int View::effectiveDesktop() const
void View::setContainment(Containment *containment)
{
if (!containment || containment == d->containment) {
if (containment == d->containment) {
return;
}
@ -136,6 +136,10 @@ void View::setContainment(Containment *containment)
}
d->containment = containment;
if (! containment) {
return;
}
if (screen > -1) {
containment->setScreen(screen);
}