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:
parent
a9b7d3361d
commit
771fd1804b
6
view.cpp
6
view.cpp
@ -124,7 +124,7 @@ int View::effectiveDesktop() const
|
|||||||
|
|
||||||
void View::setContainment(Containment *containment)
|
void View::setContainment(Containment *containment)
|
||||||
{
|
{
|
||||||
if (!containment || containment == d->containment) {
|
if (containment == d->containment) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,6 +136,10 @@ void View::setContainment(Containment *containment)
|
|||||||
}
|
}
|
||||||
|
|
||||||
d->containment = containment;
|
d->containment = containment;
|
||||||
|
if (! containment) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (screen > -1) {
|
if (screen > -1) {
|
||||||
containment->setScreen(screen);
|
containment->setScreen(screen);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user